From 7d9b0c374ceb8e389579a25c793f3442f87a21f0 Mon Sep 17 00:00:00 2001 From: Dmitry Kosolapov home Date: Tue, 20 Dec 2022 14:49:48 +0700 Subject: [PATCH] uncomment test-a --- .drone.yml | 86 +++++++++++++++++++++++++----------------------------- 1 file changed, 39 insertions(+), 47 deletions(-) diff --git a/.drone.yml b/.drone.yml index 7db483ca..19578d1e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -46,8 +46,8 @@ steps: from_secret: AWS_DEFAULT_REGION AWS_MAX_ATTEMPTS: 10 commands: -# - aws s3 sync build s3://insports-prod --delete -# - aws cloudfront create-invalidation --distribution-id E3KY6BCU3AYHEW --paths "/*" + - aws s3 sync build s3://insports-prod --delete + - aws cloudfront create-invalidation --distribution-id E3KY6BCU3AYHEW --paths "/*" - aws s3 sync build s3://instat-frontend-test-a --delete - aws cloudfront create-invalidation --distribution-id E1WZHVCHZ48SG6 --paths "/*" depends_on: @@ -240,52 +240,44 @@ steps: - aws s3 sync build s3://instat-frontend-test --delete - aws cloudfront create-invalidation --distribution-id E2ZD1DVVFA1ACC --paths "/*" -#--- -#kind: pipeline -#type: docker -#name: deploy test-a -# -#concurrency: -# limit: 1 -# -#platform: -# os: linux -# arch: amd64 -# -#trigger: -# ref: -# - 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 +--- +kind: pipeline +type: docker +name: deploy test-a + +concurrency: + limit: 1 + +platform: + os: linux + arch: amd64 + +trigger: + ref: + - 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 "/*" --- kind: pipeline