Skip to content

Commit

Permalink
Control git push command output
Browse files Browse the repository at this point in the history
  • Loading branch information
mmorhun committed Mar 14, 2024
1 parent ef7478d commit 796382a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion task/update-deployment/0.1/update-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,9 @@ spec:
git add .
git commit -m "Update '${component_id}' component image to: ${PARAM_IMAGE}"
git remote set-url origin $origin_with_auth
git push
git push 2> /dev/null || \
{
echo "Failed to push update to gitops repository: ${PARAM_GITOPS_REPO_URL}"
echo 'Do you have correct git credentials configured?'
exit 1
}

0 comments on commit 796382a

Please sign in to comment.