Skip to content

Commit

Permalink
Fix Github Actions for Docker Image (Version Tag)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAxelander committed Jan 4, 2025
2 parents d8b15e6 + ee83f98 commit 57c62b0
Showing 1 changed file with 28 additions and 3 deletions.
31 changes: 28 additions & 3 deletions .github/workflows/docker-image-version-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,23 @@ jobs:
test:
runs-on: ubuntu-latest
name: Run Test Cases

services:
mariadb:
image: mariadb:latest
ports:
- 3306:3306
env:
MARIADB_DATABASE: openbudgeteer
MARIADB_USER: openbudgeteer
MARIADB_PASSWORD: openbudgeteer
MARIADB_ROOT_PASSWORD: openbudgeteer
options: >-
--health-cmd="healthcheck.sh --connect --innodb_initialized"
--health-interval=10s
--health-timeout=5s
--health-retries=3
steps:
- name: Check out repo
uses: actions/checkout@v3
Expand All @@ -28,10 +45,18 @@ jobs:
run: dotnet build OpenBudgeteer.Blazor --configuration Release --no-restore

- name: Run Core Test Cases
env:
CONNECTION_PROVIDER: mariadb
CONNECTION_SERVER: localhost
CONNECTION_PORT: 3306
CONNECTION_USER: openbudgeteer
CONNECTION_PASSWORD: openbudgeteer
CONNECTION_DATABASE: openbudgeteer
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 @@ -56,4 +81,4 @@ jobs:
context: .
push: true
tags: axelander/openbudgeteer:${{ github.ref_name }}
platforms: linux/arm64,linux/amd64
platforms: linux/arm64,linux/amd64

0 comments on commit 57c62b0

Please sign in to comment.