diff --git a/.drone.yml b/.drone.yml index 65e35b73..ffe08ef2 100644 --- a/.drone.yml +++ b/.drone.yml @@ -412,4 +412,49 @@ steps: - npm install --legacy-peer-deps - make build-i - aws s3 sync build s3://instat-frontend-test-i --delete - - aws cloudfront create-invalidation --distribution-id EJYRP4WNVMWD1 --paths "/*" \ No newline at end of file + - aws cloudfront create-invalidation --distribution-id EJYRP4WNVMWD1 --paths "/*" + + +--- +kind: pipeline +type: docker +name: deploy test-auth + +concurrency: + limit: 1 + +platform: + os: linux + arch: amd64 + +trigger: + ref: + - refs/heads/test-auth + +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 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.test.insports.tv >> ~/.ssh/known_hosts + - rsync -v -r -C build_auth/ ubuntu@auth.test.insports.tv:/home/ubuntu/ott-auth/src/frontend/ + - rsync -v -r -C build_auth/clients/* ubuntu@auth.test.insports.tv:/home/ubuntu/ott-auth/src/frontend/templates + - ssh ubuntu@auth.test.insports.tv 'bash -s' < ./run.sh OTT-2535-test docker-compose-test.yaml diff --git a/src/features/AuthServiceApp/components/Login/index.tsx b/src/features/AuthServiceApp/components/Login/index.tsx index 089db6f4..9ff0747c 100644 --- a/src/features/AuthServiceApp/components/Login/index.tsx +++ b/src/features/AuthServiceApp/components/Login/index.tsx @@ -125,7 +125,7 @@ const Login = () => { - Google + Googlle {/*