parent
1be94e4a66
commit
1f31b8b9e3
@ -0,0 +1,36 @@ |
||||
--- |
||||
kind: pipeline |
||||
type: docker |
||||
name: deploy a-test |
||||
|
||||
concurrency: |
||||
limit: 1 |
||||
|
||||
platform: |
||||
os: linux |
||||
arch: amd64 |
||||
|
||||
trigger: |
||||
ref: |
||||
- refs/heads/a-test |
||||
|
||||
steps: |
||||
- name: deploy script |
||||
image: alpine |
||||
|
||||
environment: |
||||
AWS_ACCESS_KEY_ID: |
||||
from_secret: AWS_ACCESS_KEY_ID |
||||
AWS_SECRET_ACCESS_KEY: |
||||
from_secret: AWS_SECRET_ACCESS_KEY |
||||
AWS_DEFAULT_REGION: |
||||
from_secret: AWS_DEFAULT_REGION |
||||
REACT_APP_STRIPE_PK: |
||||
from_secret: REACT_APP_STRIPE_PK_TEST |
||||
|
||||
commands: |
||||
- apk add --no-cache aws-cli npm |
||||
- npm install |
||||
- npm run build |
||||
- aws s3 sync build s3://instat-frontend-test-a --delete |
||||
- aws cloudfront create-invalidation --distribution-id E1WZHVCHZ48SG6 --paths "/*" |
||||
Loading…
Reference in new issue