Skip to content

Commit

Permalink
feat: updated script with env
Browse files Browse the repository at this point in the history
  • Loading branch information
Meyanis95 committed Sep 16, 2024
1 parent 390252d commit 9be349c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
set -ex

ISSUER_URL="https://issuer.anon-aadhaar.pse.dev"
NULLIFIER_SEED="742762287071232"

aws ecr get-login-password --region eu-central-1 | docker login --username AWS --password-stdin 490752553772.dkr.ecr.eu-central-1.amazonaws.com

docker build --build-arg "NEXT_PUBLIC_ISSUER_URL=$ISSUER_URL" -t anon-aadhaar-client -f client/Dockerfile client
docker build --build-arg "NEXT_PUBLIC_ISSUER_URL=$ISSUER_URL" --build-arg "NEXT_PUBLIC_NULLIFIER_SEED=$NULLIFIER_SEED" -t anon-aadhaar-client -f client/Dockerfile client
docker tag anon-aadhaar-client:latest 490752553772.dkr.ecr.eu-central-1.amazonaws.com/anon-aadhaar-client:latest
docker push 490752553772.dkr.ecr.eu-central-1.amazonaws.com/anon-aadhaar-client:latest

Expand Down

0 comments on commit 9be349c

Please sign in to comment.