|
|
|
@ -46,8 +46,8 @@ steps: |
|
|
|
from_secret: AWS_DEFAULT_REGION |
|
|
|
from_secret: AWS_DEFAULT_REGION |
|
|
|
AWS_MAX_ATTEMPTS: 10 |
|
|
|
AWS_MAX_ATTEMPTS: 10 |
|
|
|
commands: |
|
|
|
commands: |
|
|
|
# - aws s3 sync build s3://insports-prod --delete |
|
|
|
- aws s3 sync build s3://insports-prod --delete |
|
|
|
# - aws cloudfront create-invalidation --distribution-id E3KY6BCU3AYHEW --paths "/*" |
|
|
|
- aws cloudfront create-invalidation --distribution-id E3KY6BCU3AYHEW --paths "/*" |
|
|
|
- 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 "/*" |
|
|
|
depends_on: |
|
|
|
depends_on: |
|
|
|
@ -240,52 +240,44 @@ steps: |
|
|
|
- aws s3 sync build s3://instat-frontend-test --delete |
|
|
|
- aws s3 sync build s3://instat-frontend-test --delete |
|
|
|
- aws cloudfront create-invalidation --distribution-id E2ZD1DVVFA1ACC --paths "/*" |
|
|
|
- aws cloudfront create-invalidation --distribution-id E2ZD1DVVFA1ACC --paths "/*" |
|
|
|
|
|
|
|
|
|
|
|
#--- |
|
|
|
--- |
|
|
|
#kind: pipeline |
|
|
|
kind: pipeline |
|
|
|
#type: docker |
|
|
|
type: docker |
|
|
|
#name: deploy test-a |
|
|
|
name: deploy test-a |
|
|
|
# |
|
|
|
|
|
|
|
#concurrency: |
|
|
|
concurrency: |
|
|
|
# limit: 1 |
|
|
|
limit: 1 |
|
|
|
# |
|
|
|
|
|
|
|
#platform: |
|
|
|
platform: |
|
|
|
# os: linux |
|
|
|
os: linux |
|
|
|
# arch: amd64 |
|
|
|
arch: amd64 |
|
|
|
# |
|
|
|
|
|
|
|
#trigger: |
|
|
|
trigger: |
|
|
|
# ref: |
|
|
|
ref: |
|
|
|
# - refs/heads/test-a |
|
|
|
- refs/heads/test-a |
|
|
|
# |
|
|
|
|
|
|
|
#steps: |
|
|
|
|
|
|
|
# - name: deploy script |
|
|
|
|
|
|
|
# image: node:16-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 |
|
|
|
|
|
|
|
# SSH_KEY_AUTH: |
|
|
|
|
|
|
|
# from_secret: SSH_KEY_AUTH |
|
|
|
|
|
|
|
# |
|
|
|
|
|
|
|
# commands: |
|
|
|
|
|
|
|
# - apk add --no-cache aws-cli bash git openssh-client make rsync |
|
|
|
|
|
|
|
# - npm install --legacy-peer-deps |
|
|
|
|
|
|
|
# - make build-a |
|
|
|
|
|
|
|
# - 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:/home/ubuntu/ott-auth/src/frontend/ |
|
|
|
|
|
|
|
## - rsync -v -r -C build_auth/clients/* ubuntu@auth.insports.tv:/home/ubuntu/ott-auth/src/frontend/templates |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
steps: |
|
|
|
|
|
|
|
- name: deploy script |
|
|
|
|
|
|
|
image: node:16-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 |
|
|
|
|
|
|
|
SSH_KEY_AUTH: |
|
|
|
|
|
|
|
from_secret: SSH_KEY_AUTH |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
commands: |
|
|
|
|
|
|
|
- apk add --no-cache aws-cli bash git openssh-client make rsync |
|
|
|
|
|
|
|
- npm install --legacy-peer-deps |
|
|
|
|
|
|
|
- make build-a |
|
|
|
|
|
|
|
- aws s3 sync build s3://instat-frontend-test-a --delete |
|
|
|
|
|
|
|
- aws cloudfront create-invalidation --distribution-id E1WZHVCHZ48SG6 --paths "/*" |
|
|
|
|
|
|
|
|
|
|
|
--- |
|
|
|
--- |
|
|
|
kind: pipeline |
|
|
|
kind: pipeline |
|
|
|
|