Skip to content

Commit

Permalink
[MDS-5064] Updated argocd cli command
Browse files Browse the repository at this point in the history
  • Loading branch information
sjudzentis committed Jul 27, 2023
1 parent 51463aa commit a788129
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions gitops/watch-deployment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ TARGET_APP=${1?"Enter App Name !"}
ENV=${2?"Enter ENV Name !"}
GIT_SHA=${3?"Enter GIT SHA of commit!"}
DISCORD_DEPLOYMENT_WEBHOOK=${4?"Enter DISCORD_DEPLOYMENT_WEBHOOK!"}
ARGOCD_SERVER=${5?"Enter ARGOCD_SERVER!"}
ARGOCD_AUTH_TOKEN=${6?"Enter ARGOCD_AUTH_TOKEN!"}
export ARGOCD_SERVER=${5?"Enter ARGOCD_SERVER!"}
export ARGOCD_AUTH_TOKEN=${6?"Enter ARGOCD_AUTH_TOKEN!"}

REPO_LOCATION=$(git rev-parse --show-toplevel)

Expand All @@ -26,8 +26,9 @@ echo -e "\n"
echo "Watching for new revision of $TARGET_APP to be rolled out"
echo "Waiting for $TARGET_APP to sync and be in healthy state"

argocd app sync $TARGET_APP --server $ARGOCD_SERVER --auth-token $ARGOCD_AUTH_TOKEN
argocd app wait $TARGET_APP --server $ARGOCD_SERVER --auth-token $ARGOCD_AUTH_TOKEN
argocd login
argocd app sync $TARGET_APP
argocd app wait $TARGET_APP

echo "Target Revision is achieved $CURRENT_REVISION"

Expand Down

0 comments on commit a788129

Please sign in to comment.