diff --git a/DEPLOY_VIEWER.md b/DEPLOY_VIEWER.md index d08cd5294..4f5ba6a7e 100644 --- a/DEPLOY_VIEWER.md +++ b/DEPLOY_VIEWER.md @@ -87,8 +87,6 @@ git checkout $VERSION scripts/deploy_viewer.sh int ``` -Go to the [ArgoCD dashboard](#argocd) to check if everything went well. - ### Prod-viewer (manual) The version should have been created and tested on int first. @@ -98,7 +96,6 @@ export VERSION="" # the version (like 2022.02.0) git checkout $VERSION scripts/deploy_viewer.sh prod ``` -Go to the [ArgoCD dashboard](#argocd) to check if everything went well. ## Argo CD diff --git a/scripts/deploy_viewer.sh b/scripts/deploy_viewer.sh index 5e368cae2..2dbc2260f 100755 --- a/scripts/deploy_viewer.sh +++ b/scripts/deploy_viewer.sh @@ -43,10 +43,13 @@ function deploy_ui { function deploy_api { tag="$1" + export AWS_ACCESS_KEY_ID=$(gopass cat ngm/fargate/api/AWS_ACCESS_KEY_ID) # todo remove when k8s migration done + export AWS_SECRET_ACCESS_KEY=$(gopass cat ngm/fargate/api/AWS_SECRET_ACCESS_KEY) # todo remove when k8s migration done docker pull $IMAGE_NAME:$VERSION docker tag $IMAGE_NAME:$VERSION $IMAGE_NAME:$tag docker push $IMAGE_NAME:$tag - ./scripts/deploy-to-env.sh "$1" + aws ecs update-service --region $AWS_REGION --cluster api_$tag --service api_$tag --force-new-deployment # todo remove when k8s migration done +# ./scripts/deploy-to-env.sh "$1" uncomment when k8s migration done }