From f81a46b888eec1445252a7cfc2965bd574e6c001 Mon Sep 17 00:00:00 2001 From: Alexander Preibisch Date: Sat, 16 Mar 2024 10:03:58 +0100 Subject: [PATCH] Update Github Actions for master --- .github/workflows/docker-image-master.yml | 38 +++++++++++++++++++---- 1 file changed, 32 insertions(+), 6 deletions(-) diff --git a/.github/workflows/docker-image-master.yml b/.github/workflows/docker-image-master.yml index e1bbb18..15b7cf5 100644 --- a/.github/workflows/docker-image-master.yml +++ b/.github/workflows/docker-image-master.yml @@ -28,9 +28,9 @@ jobs: - name: Run Core Test Cases run: dotnet test OpenBudgeteer.Core.Test - deploy-docker: + deploy-docker-app: runs-on: ubuntu-latest - name: Build and Push Docker Image + name: Build and Push Docker Image (App) needs: test if: success() steps: @@ -55,7 +55,33 @@ jobs: context: . push: true tags: axelander/openbudgeteer:latest -# file: OpenBudgeteer.Blazor/Dockerfile -# platforms: linux/arm64,linux/amd64 - platforms: linux/amd64 - \ No newline at end of file + platforms: linux/arm64,linux/amd64 + deploy-docker-api: + runs-on: ubuntu-latest + name: Build and Push Docker Image (API) + needs: test + if: success() + steps: + - name: Check out repo + uses: actions/checkout@v3 + + - name: Docker Login + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + + - name: Build and push Docker image + uses: docker/build-push-action@v4 + with: + context: . + push: true + tags: axelander/openbudgeteer-api:latest + file: API.Dockerfile + platforms: linux/arm64,linux/amd64 \ No newline at end of file