Skip to content

Commit 3ebd6da

Browse files
committed
ci(workflow): rename workflow and configure container environment variables
- Rename `.github/workflows/blank.yml` to `.github/workflows/ci-cd.yml` - Pass `ASPNETCORE_ENVIRONMENT`, `Jwt__Key`, and `DefaultAdminPassword` environment variables from GitHub Secrets to the Docker container during deployment - Remove obsolete comment regarding port mapping
1 parent 6287d99 commit 3ebd6da

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,10 @@ jobs:
6666
docker rm game-collection-api || true
6767
6868
# Run the new container
69-
# IMPORTANT: Change '8080:80' to map your desired host port to the container's port.
7069
docker run -d \
7170
--name game-collection-api \
7271
-p 8080:8080 \
72+
-e ASPNETCORE_ENVIRONMENT=Production \
73+
-e "Jwt__Key=${{ secrets.JWT_SECRET_KEY }}" \
74+
-e "DefaultAdminPassword=${{ secrets.DEFAULT_ADMIN_PASSWORD }}" \
7375
ghcr.io/harsche/game-collection-api:latest

0 commit comments

Comments
 (0)