Skip to content

Commit

Permalink
add redeploy
Browse files Browse the repository at this point in the history
  • Loading branch information
tinydjp committed Sep 17, 2024
1 parent ffa0ad0 commit 099bfd0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ jobs:
docker tag vota-bridge-ui:local $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
- name: Redeploy on aws
env:
SUFFIX: ${{ fromJson('["vota-bridge-ui-dev", "vota-migration-ui-prod -n webapp"]')[github.ref_name == 'main'] }}
run: |
aws eks update-kubeconfig --region ap-southeast-1 --name ${{ secrets.EKS_CLUSTER }}
kubectl rollout restart deploy vota-bridge-ui-dev
kubectl rollout restart deploy $SUFFIX

0 comments on commit 099bfd0

Please sign in to comment.