Skip to content

Commit 0f180af

Browse files
committed
Deploy on push - Bug on cd
1 parent a1d90f8 commit 0f180af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/deploy.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ jobs:
3434
env:
3535
GITHUB_TOKEN: ${{ secrets.ARGOCD_GITHUB_TOKEN }}
3636
run: |
37-
set -Eeuo pipefail
38-
cd kube-argocd || echo 'Fail Cd' & exit 1
3937
echo "Patch Deployment with the last commit ($LAST_COMMIT)"
38+
set -Eeuo pipefail
39+
cd kube-argocd || (echo 'Fail Cd' && exit 1)
4040
# Patch with the last commit the app deployment
4141
kubectl patch --local -f com-combostrap/com-combostrap-deployment.yml -p "{\"spec\":{\"template\":{\"spec\":{\"containers\":[{\"name\":\"com-combostrap\",\"env\":[{\"name\":\"DOKU_DOCKER_GIT_SITE_COMMIT\",\"$LAST_COMMIT\":\"new\"}]}]}}}}"
4242
# Do we have changes?

0 commit comments

Comments
 (0)