Skip to content

Commit 4994677

Browse files
committed
fix: start docker container for tests in release workflow
1 parent d4edf43 commit 4994677

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.github/workflows/release_nuget.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,19 @@ jobs:
2323
- name: Build/Check for compile errors (dotnet build)
2424
working-directory: "TransformerBeeClient"
2525
run: dotnet build --configuration Release
26+
- name: Log into registry
27+
# GHCR_PAT is a personal access token for the Github Container Registry; You can create it using the following steps:
28+
# 1) Go to https://github.com/settings/tokens
29+
# 2) Create a new token (classic as of 2024-01-31)
30+
# 3) Select the following scopes: read:packages
31+
# GHCR_USR is the username for the Github Container Registry; it has to match the PAT and is the username of the Github account that created the PAT
32+
# You can update the tokens in the repository settings:
33+
# https://github.com/Hochfrequenz/transformer.bee_client.net/settings/secrets/actions/GHCR_PAT
34+
# https://github.com/Hochfrequenz/transformer.bee_client.net/settings/secrets/actions/GHCR_USR
35+
# Tokens will expire 2025-01-31
36+
run: echo "${{ secrets.GHCR_PAT }}" | docker login ghcr.io -u ${{ secrets.GHCR_USR }} --password-stdin
37+
- name: Start containers
38+
run: docker-compose -f "TransformerBeeClient/TransformerBeeClient.IntegrationTest/docker-compose.yml" up -d
2639
- name: Run Unit Tests (dotnet test) # never ever release with failing tests!
2740
working-directory: "TransformerBeeClient"
2841
run: dotnet test --configuration Release

0 commit comments

Comments
 (0)