Update .gitea/workflows/docker.yml

This commit is contained in:
2025-09-17 14:44:24 +02:00
parent 8ae9f1afdf
commit 0a21d5534d

View File

@@ -1,36 +1,25 @@
name: Build and Publish Docker Image name: Build and Publish Docker Image
on: [workflow_dispatch]
on: [workflow_dispatch] jobs:
build-and-push:
jobs: runs-on: ubuntu-latest
build-and-push: container:
strategy: image: catthehacker/ubuntu:act-latest
matrix: steps:
arch: [amd64, arm64] - name: Checkout code
runs-on: ${{ matrix.arch }} uses: actions/checkout@v4
- name: Set up Docker Buildx
#jobs: uses: docker/setup-buildx-action@v3
# build-and-push: - name: Log in to Gitea Container Registry
# runs-on: ubuntu-latest uses: docker/login-action@v3
with:
steps: registry: git.ztsw.de
- name: Checkout code username: ${{ secrets.CR_USERNAME }}
uses: actions/checkout@v4 password: ${{ secrets.CR_PASSWORD }}
- name: Build and push Docker image
- name: Set up Docker Buildx uses: docker/build-push-action@v5
uses: docker/setup-buildx-action@v3 with:
context: .
- name: Log in to Gitea Container Registry push: true
uses: docker/login-action@v3 platforms: linux/amd64,linux/arm64
with: tags: git.ztsw.de/pedan/freemoto/freemoto-web:latest
registry: git.ztsw.de
username: ${{ secrets.CR_USERNAME }}
password: ${{ secrets.CR_PASSWORD }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
platforms: linux/${{ matrix.arch }}
tags: git.ztsw.de/pedan/nosori/nosori:latest