Skip to content
Snippets Groups Projects
Commit 5d2bb154 authored by Frieder Schrempf's avatar Frieder Schrempf
Browse files

ci: Add CONTAINER_BUILD_DISABLED to disable container build

parent e5495901
No related branches found
No related tags found
1 merge request!9Draft: Upgrade Recipe Bot
......@@ -12,6 +12,8 @@
# In case we are not on the main branch, we only want to do build testing for
# the image, without pushing anything to the registry.
rules:
- if: '$CONTAINER_BUILD_DISABLED'
when: never
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
when: never
- changes:
......@@ -30,6 +32,8 @@
- podman push $CI_REGISTRY_IMAGE/$TAG
# In case we are on the main branch, we want to build and push the image.
rules:
- if: '$CONTAINER_BUILD_DISABLED'
when: never
- if: $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH
when: never
- changes:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment