Skip to content

Commit

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

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


Expand Down

0 comments on commit 281ce85

Please sign in to comment.