Passing the `defaultBranch` argument to `buildContainerImage2()` allows setting the `latest` for projects where the default branch is not *main*. For example: ```groovy buildContainerImage2(defaultBranch: 'master') ``` This will update the `latest` tag whenever a new build is created on the *master* branch. |
||
---|---|---|
resources | ||
vars | ||
README.md |
README.md
Container Images Shared Library
This shared library allows jobs to build and publish container images to Gitea very easily:
buildContainerImage()
That's it!