Skip to content

Commit a0d7af4

Browse files
committed
Merge branch 'pre-release'
2 parents 45b76bd + f81a46b commit a0d7af4

File tree

1 file changed

+32
-6
lines changed

1 file changed

+32
-6
lines changed

.github/workflows/docker-image-master.yml

Lines changed: 32 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ jobs:
2828

2929
- name: Run Core Test Cases
3030
run: dotnet test OpenBudgeteer.Core.Test
31-
deploy-docker:
31+
deploy-docker-app:
3232
runs-on: ubuntu-latest
33-
name: Build and Push Docker Image
33+
name: Build and Push Docker Image (App)
3434
needs: test
3535
if: success()
3636
steps:
@@ -55,7 +55,33 @@ jobs:
5555
context: .
5656
push: true
5757
tags: axelander/openbudgeteer:latest
58-
# file: OpenBudgeteer.Blazor/Dockerfile
59-
# platforms: linux/arm64,linux/amd64
60-
platforms: linux/amd64
61-
58+
platforms: linux/arm64,linux/amd64
59+
deploy-docker-api:
60+
runs-on: ubuntu-latest
61+
name: Build and Push Docker Image (API)
62+
needs: test
63+
if: success()
64+
steps:
65+
- name: Check out repo
66+
uses: actions/checkout@v3
67+
68+
- name: Docker Login
69+
uses: docker/login-action@v2
70+
with:
71+
username: ${{ secrets.DOCKERHUB_USERNAME }}
72+
password: ${{ secrets.DOCKERHUB_TOKEN }}
73+
74+
- name: Set up QEMU
75+
uses: docker/setup-qemu-action@v2
76+
77+
- name: Set up Docker Buildx
78+
uses: docker/setup-buildx-action@v2
79+
80+
- name: Build and push Docker image
81+
uses: docker/build-push-action@v4
82+
with:
83+
context: .
84+
push: true
85+
tags: axelander/openbudgeteer-api:latest
86+
file: API.Dockerfile
87+
platforms: linux/arm64,linux/amd64

0 commit comments

Comments
 (0)