Skip to content

Commit

Permalink
try a different way of passing in secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
bkiahstroud committed Jul 26, 2024
1 parent 10266de commit 5df5343
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build_docker_images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,15 @@ jobs:
env:
BUILD_TYPE: api_rails
BUILD_LOCATION: /api
CAS_CLIENT_ID: ${{ secrets.CAS_CLIENT_ID }}
CAS_CLIENT_SECRET: ${{ secrets.CAS_CLIENT_SECRET }}
TAGS: ${{ steps.meta-api.outputs.tags }}
shell: bash
run: |
TAG=latest docker compose pull ${BUILD_TYPE} || true
docker compose build \
--build-arg CAS_CLIENT_ID=${{ secrets.CAS_CLIENT_ID }} \
--build-arg CAS_CLIENT_SECRET=${{ secrets.CAS_CLIENT_SECRET }} \
--build-arg CAS_CLIENT_ID=$CAS_CLIENT_ID \
--build-arg CAS_CLIENT_SECRET=$CAS_CLIENT_SECRET \
--build-arg BUILDKIT_INLINE_CACHE=1 \
${BUILD_TYPE}
docker compose push ${BUILD_TYPE}
Expand Down

0 comments on commit 5df5343

Please sign in to comment.