Skip to content

Commit

Permalink
fix: add build arg in gh actions (#80) (#81)
Browse files Browse the repository at this point in the history
* don't bake in the sensitive values on build time

* push to ecr instead, remove baked in envs in dockerfile

* push to ecr instead, remove baked in envs in dockerfile
  • Loading branch information
HenrySpartGlobal authored Apr 9, 2024
1 parent a9fab7f commit ce5db8d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/deploy-live.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,14 @@ jobs:

- name: Build Docker image
run: |
docker build -t in-house-queue-site .
docker build -t inhousequeue-site \
--build-arg DATABASE_URL=${{ secrets.DATABASE_URL }} \
--build-arg NEXTAUTH_SECRET=${{ secrets.NEXTAUTH_SECRET }} \
--build-arg DISCORD_CLIENT_ID=${{ secrets.DISCORD_CLIENT_ID }} \
--build-arg DISCORD_CLIENT_SECRET=${{ secrets.DISCORD_CLIENT_SECRET }} \
--build-arg UPSTASH_REDIS_REST_URL=${{ secrets.UPSTASH_REDIS_REST_URL }} \
--build-arg UPSTASH_REDIS_REST_TOKEN=${{ secrets.UPSTASH_REDIS_REST_TOKEN }} \
.
- name: Login to Amazon ECR
uses: aws-actions/configure-aws-credentials@v4
Expand Down

0 comments on commit ce5db8d

Please sign in to comment.