Skip to content

Do not run pipeline after changing kustomization file #20725

Answered by Alissonfsv
Alissonfsv asked this question in Q&A
Discussion options

You must be logged in to vote

Just to conclude this discussion, I return here with the solution I applied, this solution being to add the -o ci.skip option to the argocd-image-updater project code and create an image with the changes

Note: All changes were made in the v0.14.0 branch

argocd-image-updater/ext/git/writer.go

// Push pushes local changes to the remote branch. If force is true, will force
// the remote to accept the push.
func (m *nativeGitClient) Push(remote string, branch string, force bool, ciskip bool) error {
	args := []string{"push"}
	if force {
		args = append(args, "-f")
	}
	// Adding ciskip to push
	if ciskip {
		args = append(args, "-o", "ci.skip")
	}
	// End
	args = append(args, remote, branch)
	err

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@Alissonfsv
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by Alissonfsv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants