Update .gitea/workflows/docker.yml

This commit is contained in:
2025-09-17 14:58:01 +02:00
parent 4f3d350260
commit ca55fb7e9c

View File

@@ -1,34 +1,22 @@
name: Build and Publish Docker Image name: Build and Publish Docker Image
on: [workflow_dispatch] on: [workflow_dispatch]
jobs: jobs:
build-and-push: build-amd64:
runs-on: ubuntu-latest runs-on: amd64-runner
container:
image: catthehacker/ubuntu:act-latest
strategy:
matrix:
arch: [amd64, arm64]
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Set up Docker Buildx - name: Build AMD64
uses: docker/setup-buildx-action@v3 run: |
with: docker build -t git.ztsw.de/pedan/freemoto/freemoto-web:amd64 .
buildkitd-flags: | docker push git.ztsw.de/pedan/freemoto/freemoto-web:amd64
--allow-insecure-entitlement security.insecure
--allow-insecure-entitlement network.host build-arm64:
- name: Log in to Gitea Container Registry runs-on: arm64-runner
uses: docker/login-action@v3 steps:
with: - name: Checkout code
registry: git.ztsw.de uses: actions/checkout@v4
username: ${{ secrets.CR_USERNAME }} - name: Build ARM64
password: ${{ secrets.CR_PASSWORD }} run: |
- name: Build and push Docker image docker build -t git.ztsw.de/pedan/freemoto/freemoto-web:arm64 .
uses: docker/build-push-action@v5 docker push git.ztsw.de/pedan/freemoto/freemoto-web:arm64
with:
context: .
push: true
platforms: linux/${{ matrix.arch }}
tags: git.ztsw.de/pedan/freemoto/freemoto-web:latest-${{ matrix.arch }}
allow: |
security.insecure