Merge pull request #126 from ekini/fix/frontend_fix

Use the static deployment bucket from SSM
This commit is contained in:
Ron
2023-09-15 16:42:18 +08:00
committed by GitHub

View File

@@ -158,6 +158,8 @@ jobs:
- name: Deploy Console 🚀
run: |
DEPLOY_BUCKET=${{ env.PROJECT }}-${{ env.STACK }}
set -u
# this value will come from the dotenv above
echo "Deploying to $STATIC_DEPLOY_BUCKET"
wget -O- https://github.com/bep/s3deploy/releases/download/v2.11.0/s3deploy_2.11.0_linux-amd64.tar.gz | tar xzv -f - s3deploy
./s3deploy -region ${AWS_REGION} -source console/dist -bucket ${DEPLOY_BUCKET}
./s3deploy -region ${AWS_REGION} -source console/dist -bucket ${STATIC_DEPLOY_BUCKET}