Skip to content

Commit

Permalink
Set GitHub Token for docker compose v2 syntax (#544)
Browse files Browse the repository at this point in the history
  • Loading branch information
DrizzlyOwl authored Aug 6, 2024
1 parent 1a6c908 commit a6a9eaf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/continuous-integration-image-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ jobs:
image-build-test:
name: Image build test
runs-on: ubuntu-latest

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Check out code
uses: actions/checkout@v4
Expand All @@ -19,4 +20,4 @@ jobs:
run: |
cp .env.development.local.example .env.development.local
cp .env.database.example .env.database
docker-compose -f docker-compose.yml -p app build --secrets github_token: ${{ secrets.GITHUB_TOKEN }}
docker compose -f docker-compose.yml -p app build
5 changes: 4 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "3.8"
services:
webapi:
build:
Expand Down Expand Up @@ -42,3 +41,7 @@ networks:

volumes:
sql-server-data:

secrets:
github_token:
environment: GITHUB_TOKEN

0 comments on commit a6a9eaf

Please sign in to comment.