From 138b62aa31e12be77bbe627bc4e4c7fd37de62e8 Mon Sep 17 00:00:00 2001 From: Julius Zeidler Date: Thu, 10 Apr 2025 01:04:17 +0200 Subject: [PATCH] multi build --- .forgejo/workflows/publish.yaml | 12 ++++++++++-- Dockerfile-alpine => alpine/Dockerfile | 0 Dockerfile-ubuntu => ubuntu/Dockerfile | 0 3 files changed, 10 insertions(+), 2 deletions(-) rename Dockerfile-alpine => alpine/Dockerfile (100%) rename Dockerfile-ubuntu => ubuntu/Dockerfile (100%) diff --git a/.forgejo/workflows/publish.yaml b/.forgejo/workflows/publish.yaml index f27a71a..2dc11c9 100644 --- a/.forgejo/workflows/publish.yaml +++ b/.forgejo/workflows/publish.yaml @@ -58,9 +58,17 @@ jobs: uses: docker/setup-buildx-action@v3 with: driver: docker-container - - name: Build and push + - name: Build and push alpine uses: docker/build-push-action@v6 with: + context: alpine push: true platforms: linux/amd64, linux/arm64 - tags: ${{ vars.REGISTRY_URL }}/${{ env.GITHUB_REPOSITORY }}:latest + tags: ${{ vars.REGISTRY_URL }}/${{ env.GITHUB_REPOSITORY }}-alpine:latest + - name: Build and push ubuntu + uses: docker/build-push-action@v6 + with: + context: alpine + push: true + platforms: linux/amd64, linux/arm64 + tags: ${{ vars.REGISTRY_URL }}/${{ env.GITHUB_REPOSITORY }}-ubuntu:latest diff --git a/Dockerfile-alpine b/alpine/Dockerfile similarity index 100% rename from Dockerfile-alpine rename to alpine/Dockerfile diff --git a/Dockerfile-ubuntu b/ubuntu/Dockerfile similarity index 100% rename from Dockerfile-ubuntu rename to ubuntu/Dockerfile