Skip to content

Commit

Permalink
Update Github Actions for master
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAxelander committed Mar 16, 2024
1 parent 4cbaf46 commit f81a46b
Showing 1 changed file with 32 additions and 6 deletions.
38 changes: 32 additions & 6 deletions .github/workflows/docker-image-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -55,7 +55,33 @@ jobs:
context: .
push: true
tags: axelander/openbudgeteer:latest
# file: OpenBudgeteer.Blazor/Dockerfile
# platforms: linux/arm64,linux/amd64
platforms: linux/amd64

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

0 comments on commit f81a46b

Please sign in to comment.