#I need jump start on CI that pushes back to the git repo

1 messages · Page 1 of 1 (latest)

young trench
#

I have actions in Go that checkout in full from the detached for CI (azure pipelines).
Now with dagger, I need to automate some stuff that can involve full checkout, formatted changelog, commit, push tag if not exists, etc.

Last I looked at this it was all "sandbox" and not clear to me how to do this.
Can someone give me a pointer if you've done CI that pushes back to the repo itself so I can build a function that would let me automate some of this across many of my repos?

Just a jump start. I won't be using shell, but just the Go SDK directly.

fossil raft
young trench
#

it would be running in CI.... so if i want i can do two things

  • checkout based on the arg i pass in and do everything internally in dagger
  • or mount (but i don't think there's a two way sync).... so essentially i can have the repo cloned already but i have to manipulate to fix the fact CI checks out as a detached commit.
fossil raft
#

Having said that, I'd say to go the Dagger checkout way as it's generally more performant

fossil raft
#

so in a nutshell @young trench I'd check out the code using the dag.Gitcall (don't forget to add the keepGitDir flag), make your changes and then run git commit && git push in an alpine container with git