Skip to content

Commit

Permalink
Add NPM_AUTH_TOKEN to build context
Browse files Browse the repository at this point in the history
  • Loading branch information
mesudip committed Nov 8, 2024
1 parent 6794eb3 commit 8f5154f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ jobs:
echo 'REGISTRY_BASE=registry.sireto.io/cardanoapi'
echo 'STACK_NAME=ccva'
echo 'DEPLOY_BASE_DOMAIN=ccv.cardanoapi.io'
echo 'NPM_AUTH_TOKEN=${{ secrets.NPM_AUTH_TOKEN }}'
echo 'DATABASE_PASSWORD=${{ secrets.TEST_DATABASE_PASSWORD }}'
echo 'CARDANO_NETWORK=preprod'
} > .env
Expand Down
1 change: 1 addition & 0 deletions deployment/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ DEPLOY_BASE_DOMAIN=ccv.cardanoapi.io
IMAGE_VERSION_TAG=v1
CARDANO_NETWORK=preprod
DATABASE_PASSWORD=XXXXX
NPM_AUTH_TOKEN=xxxx
GITHUB_TOKEN=XXXXX
2 changes: 2 additions & 0 deletions deployment/docker-compose-ccva.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ services:
image: ${REGISTRY_BASE}/webapp:${IMAGE_VERSION_TAG}
build:
context: ../
args:
- NPM_AUTH_TOKEN=${NPM_AUTH_TOKEN}
networks:
- postgres
- frontend
Expand Down

0 comments on commit 8f5154f

Please sign in to comment.