Skip to content

Commit

Permalink
Adjust Workflow: Fix syntax in ArgoCD step
Browse files Browse the repository at this point in the history
  • Loading branch information
miko-ov committed Nov 14, 2023
1 parent ba4dbc2 commit 4aa5414
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions .github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -155,13 +155,16 @@ jobs:
ARGOCD_SERVER: ${{ secrets.ARGOCD_SERVER }}
ARGOCD_AUTH_TOKEN: ${{ secrets.ARGOCD_AUTH_TOKEN }}
run: |
argocd app create $PROJECTNAME \
--repo https://github.com/$GITHUB_REPOSITORY.git \
--revision $GITHUB_REF_NAME --path ./chart/$PROJECTNAME \
--values values.yaml \
--dest-namespace $PROJECTNAME \
--dest-server https://kubernetes.default.svc \
--upsert
argocd app sync $PROJECTNAME
argocd app wait $PROJECTNAME
argocd app actions run $PROJECTNAME --namespace $PROJECTNAME restart --kind Deployment
argocd app create $PROJECTNAME \
--repo https://pixelaw.github.io/core/ \
--path chart/ \
--revision ${VERSION:1} \
--helm-chart $PROJECTNAME \
--dest-namespace $PROJECTNAME-main \
--dest-server https://kubernetes.default.svc \
--helm-set-string dockerImage=$REGISTRY/$PROJECTNAME:${VERSION} \
--upsert \
--server $ARGOCD_SERVER \
--auth-token $ARGOCD_AUTH_TOKEN
argocd app sync $PROJECTNAME
argocd app wait $PROJECTNAME

0 comments on commit 4aa5414

Please sign in to comment.