added README for gitlab container images with kaniko

This commit is contained in:
David Hiendl 2022-09-26 17:18:20 +02:00
parent aca57591f5
commit b745a4fb29

37
gitlab/README.md Normal file
View File

@ -0,0 +1,37 @@
# Build Scripts > Gitlab
## Container images with Kaniko
Add to .gitlab-ci.yml
```yaml
include:
- remote: 'https://raw.githubusercontent.com/dhswt/build-scripts/master/gitlab/ContainerBuildKaniko.yml'
docker-image:
extends: .BuildImageWithKaniko
# stage: package
# overwrite to change defaults for variables below
# variables:
# TAG_COMMIT_ENABLE: "true"
# TAG_COMMIT_PREFIX: "commit-"
# TAG_REF_SLUG_ENABLE: "true"
# DOCKERFILE: "$CI_PROJECT_DIR/Dockerfile"
# CONTEXT_DIR: "$CI_PROJECT_DIR"
# ADDITIONAL_REGISTRY_DESTINATIONS: ""
# ADD_GITLAB_REGISTRY_AUTH: "true"
# add gitlab job dependencies
# dependencies:
# - build
# only build relevant branches/tags
# only:
# refs:
# # - master
# - /^env\/.*$/i
# - /^v[0-9].*$/i
```