From a6a9eafa8517ab56352ed4e3046a80f9368d3c40 Mon Sep 17 00:00:00 2001 From: Ash Davies <3853061+DrizzlyOwl@users.noreply.github.com> Date: Tue, 6 Aug 2024 12:03:05 +0100 Subject: [PATCH] Set GitHub Token for docker compose v2 syntax (#544) --- .../workflows/continuous-integration-image-build-test.yml | 5 +++-- docker-compose.yml | 5 ++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/continuous-integration-image-build-test.yml b/.github/workflows/continuous-integration-image-build-test.yml index 24de2cd6b..77bd950a9 100644 --- a/.github/workflows/continuous-integration-image-build-test.yml +++ b/.github/workflows/continuous-integration-image-build-test.yml @@ -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 @@ -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 diff --git a/docker-compose.yml b/docker-compose.yml index 8459ba68b..3f632c78a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,4 +1,3 @@ -version: "3.8" services: webapi: build: @@ -42,3 +41,7 @@ networks: volumes: sql-server-data: + +secrets: + github_token: + environment: GITHUB_TOKEN