Skip to content

Commit

Permalink
Revert "use old way of deploy for int and prod"
Browse files Browse the repository at this point in the history
This reverts commit 281ce85.
  • Loading branch information
vladyslav-tk committed Oct 27, 2023
1 parent 05e1ccf commit fcc66de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 3 additions & 0 deletions DEPLOY_VIEWER.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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 <a name="argocd"></a>

Expand Down
5 changes: 1 addition & 4 deletions scripts/deploy_viewer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}


Expand Down

0 comments on commit fcc66de

Please sign in to comment.