|
|
|
@ -16,7 +16,7 @@ trigger: |
|
|
|
|
|
|
|
|
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- name: deploy script |
|
|
|
- name: deploy script |
|
|
|
image: node:16-alpine |
|
|
|
image: node:18-alpine |
|
|
|
|
|
|
|
|
|
|
|
environment: |
|
|
|
environment: |
|
|
|
AWS_ACCESS_KEY_ID: |
|
|
|
AWS_ACCESS_KEY_ID: |
|
|
|
@ -31,6 +31,6 @@ steps: |
|
|
|
commands: |
|
|
|
commands: |
|
|
|
- apk add --no-cache aws-cli npm |
|
|
|
- apk add --no-cache aws-cli npm |
|
|
|
- npm install |
|
|
|
- npm install |
|
|
|
- npm run build |
|
|
|
- npm run build --legacy-peer-deps |
|
|
|
- aws s3 sync build s3://instat-frontend-test-a --delete |
|
|
|
- aws s3 sync build s3://instat-frontend-test-a --delete |
|
|
|
- aws cloudfront create-invalidation --distribution-id E1WZHVCHZ48SG6 --paths "/*" |
|
|
|
- aws cloudfront create-invalidation --distribution-id E1WZHVCHZ48SG6 --paths "/*" |
|
|
|
|