|
|
|
|
@ -1007,3 +1007,56 @@ steps: |
|
|
|
|
- aws cloudfront create-invalidation --distribution-id E15IFY23VM147K --paths "/*" |
|
|
|
|
depends_on: |
|
|
|
|
- make-rustat |
|
|
|
|
|
|
|
|
|
--- |
|
|
|
|
kind: pipeline |
|
|
|
|
type: docker |
|
|
|
|
name: deploy insport.live |
|
|
|
|
|
|
|
|
|
concurrency: |
|
|
|
|
limit: 1 |
|
|
|
|
|
|
|
|
|
platform: |
|
|
|
|
os: linux |
|
|
|
|
arch: amd64 |
|
|
|
|
|
|
|
|
|
trigger: |
|
|
|
|
ref: |
|
|
|
|
- refs/heads/insport.live |
|
|
|
|
|
|
|
|
|
steps: |
|
|
|
|
- name: npm-install |
|
|
|
|
image: node:16-alpine |
|
|
|
|
environment: |
|
|
|
|
REACT_APP_STRIPE_PK: |
|
|
|
|
from_secret: REACT_APP_STRIPE_PK |
|
|
|
|
commands: |
|
|
|
|
- apk add --no-cache make |
|
|
|
|
- npm install --legacy-peer-deps |
|
|
|
|
|
|
|
|
|
- name: make-insport-live |
|
|
|
|
image: node:16-alpine |
|
|
|
|
environment: |
|
|
|
|
REACT_APP_STRIPE_PK: |
|
|
|
|
from_secret: REACT_APP_STRIPE_PK |
|
|
|
|
commands: |
|
|
|
|
- apk add --no-cache make |
|
|
|
|
- make insport-live-prod |
|
|
|
|
depends_on: |
|
|
|
|
- npm-install |
|
|
|
|
|
|
|
|
|
- name: deploy-insport-live |
|
|
|
|
image: amazon/aws-cli:latest |
|
|
|
|
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 |
|
|
|
|
AWS_MAX_ATTEMPTS: 10 |
|
|
|
|
commands: |
|
|
|
|
- aws s3 sync build_insport_live s3://insports-live --delete |
|
|
|
|
- aws cloudfront create-invalidation --distribution-id E1LBC88VYP6XVB --paths "/*" |
|
|
|
|
depends_on: |
|
|
|
|
- make-insport-live |