The job runs only when a tag is pushed. A
config.json
file is created under
/kaniko/.docker
with the needed GitLab container registry credentials taken from the
predefined CI/CD variables
GitLab CI/CD provides. These are automatically read by the Kaniko tool.
In the last step, kaniko uses the
Dockerfile
under the
root directory of the project, builds the Docker image and pushes it to the
project’s container registry while tagging it with the Git tag:
The example can be copied to your own group or instance for testing. More details
on what other GitLab CI patterns are demonstrated are available at the project page.
View pricing
to see all GitLab tiers and features, or to upgrade. Try GitLab for free
with access to all features for 30 days. search the docs.
If you want help with something specific and could use community support,
post on the GitLab forum.
For problems setting up or using this feature (depending on your GitLab
subscription). Request support