From fcc66deaf485ce3435d3cd4b5a0e6b4f242e41c1 Mon Sep 17 00:00:00 2001 From: vladyslavtk Date: Fri, 27 Oct 2023 13:49:26 +0300 Subject: [PATCH] Revert "use old way of deploy for int and prod" This reverts commit 281ce854a888f88aa6fdfa79ad97e5026b8d76a7. --- DEPLOY_VIEWER.md | 3 +++ scripts/deploy_viewer.sh | 5 +---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/DEPLOY_VIEWER.md b/DEPLOY_VIEWER.md index 4f5ba6a7e..d08cd5294 100644 --- a/DEPLOY_VIEWER.md +++ b/DEPLOY_VIEWER.md @@ -87,6 +87,8 @@ 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. @@ -96,6 +98,7 @@ 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 2dbc2260f..5e368cae2 100755 --- a/scripts/deploy_viewer.sh +++ b/scripts/deploy_viewer.sh @@ -43,13 +43,10 @@ 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 - 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 + ./scripts/deploy-to-env.sh "$1" }