|
|
|
|
@ -27,10 +27,18 @@ steps: |
|
|
|
|
from_secret: AWS_DEFAULT_REGION |
|
|
|
|
REACT_APP_STRIPE_PK: |
|
|
|
|
from_secret: REACT_APP_STRIPE_PK_TEST |
|
|
|
|
SSH_KEY_AUTH: |
|
|
|
|
from_secret: SSH_KEY_AUTH |
|
|
|
|
|
|
|
|
|
commands: |
|
|
|
|
- apk add --no-cache aws-cli npm |
|
|
|
|
- apk add --no-cache aws-cli bash git openssh-client |
|
|
|
|
- npm install --legacy-peer-deps |
|
|
|
|
- npm run build |
|
|
|
|
- aws s3 sync build s3://instat-frontend-test-a --delete |
|
|
|
|
- aws cloudfront create-invalidation --distribution-id E1WZHVCHZ48SG6 --paths "/*" |
|
|
|
|
- make auth-build |
|
|
|
|
- eval $(ssh-agent -s) |
|
|
|
|
- echo -n "$SSH_KEY_AUTH" | tr -d '\r' | ssh-add - |
|
|
|
|
- mkdir -p ~/.ssh && chmod 700 ~/.ssh |
|
|
|
|
- ssh-keyscan auth.insports.tv >> ~/.ssh/known_hosts |
|
|
|
|
- rsync -v -r -C build_auth/ ubuntu@auth.insports.tv:/tmp/build_auth |
|
|
|
|
|