Skip to content

Commit 57c62b0

Browse files
committed
Fix Github Actions for Docker Image (Version Tag)
2 parents d8b15e6 + ee83f98 commit 57c62b0

File tree

1 file changed

+28
-3
lines changed

1 file changed

+28
-3
lines changed

.github/workflows/docker-image-version-tag.yml

Lines changed: 28 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,23 @@ jobs:
1212
test:
1313
runs-on: ubuntu-latest
1414
name: Run Test Cases
15+
16+
services:
17+
mariadb:
18+
image: mariadb:latest
19+
ports:
20+
- 3306:3306
21+
env:
22+
MARIADB_DATABASE: openbudgeteer
23+
MARIADB_USER: openbudgeteer
24+
MARIADB_PASSWORD: openbudgeteer
25+
MARIADB_ROOT_PASSWORD: openbudgeteer
26+
options: >-
27+
--health-cmd="healthcheck.sh --connect --innodb_initialized"
28+
--health-interval=10s
29+
--health-timeout=5s
30+
--health-retries=3
31+
1532
steps:
1633
- name: Check out repo
1734
uses: actions/checkout@v3
@@ -28,10 +45,18 @@ jobs:
2845
run: dotnet build OpenBudgeteer.Blazor --configuration Release --no-restore
2946

3047
- name: Run Core Test Cases
48+
env:
49+
CONNECTION_PROVIDER: mariadb
50+
CONNECTION_SERVER: localhost
51+
CONNECTION_PORT: 3306
52+
CONNECTION_USER: openbudgeteer
53+
CONNECTION_PASSWORD: openbudgeteer
54+
CONNECTION_DATABASE: openbudgeteer
3155
run: dotnet test OpenBudgeteer.Core.Test
32-
deploy-docker:
56+
57+
deploy-docker-app:
3358
runs-on: ubuntu-latest
34-
name: Build and Push Docker Image
59+
name: Build and Push Docker Image (App)
3560
needs: test
3661
if: success()
3762
steps:
@@ -56,4 +81,4 @@ jobs:
5681
context: .
5782
push: true
5883
tags: axelander/openbudgeteer:${{ github.ref_name }}
59-
platforms: linux/arm64,linux/amd64
84+
platforms: linux/arm64,linux/amd64

0 commit comments

Comments
 (0)