Skip to content
Snippets Groups Projects
Unverified Commit 86a1b3c9 authored by Varac's avatar Varac
Browse files

Merge container image build jobs

Fixes: #728
parent 02266438
No related branches found
No related tags found
No related merge requests found
......@@ -81,35 +81,23 @@ default:
ci-test-image-update:
<<: *docker_build_template
only:
rules::
# Automatically rebuild the docker container if this file, the Dockerfile,
# the installed requirements or the kaniko template change
refs:
- merge_requests
changes:
&ci_test_image_changes [
".gitlab-ci.yml",
"Dockerfile",
"requirements.txt",
".gitlab/ci_templates/**",
- changes:
- .gitlab-ci.yml
- Dockerfile
- requirements.txt
- .gitlab/ci_templates/**
# These changes need to be tracked because subsequent jobs will try to
# use the image that is tagged by this job.
".gitlab/ci_scripts/*",
"ansible/**/*",
"flux/**/*",
"test/**/*",
"openappstack/**/*"]
ci-test-image-rebuild:
<<: *docker_build_template
# Make sure these two jobs stay mutually exclusive.
except:
changes:
*ci_test_image_changes
only:
- .gitlab/ci_scripts/*
- ansible/**/*
- flux/**/*
- test/**/*
- openappstack/**/*
# Also rebuild when the CI message contains REBUILD_CONTAINER
variables:
- $CI_COMMIT_MESSAGE =~ /REBUILD_CONTAINER/
- if: $CI_COMMIT_MESSAGE =~ /REBUILD_CONTAINER/
# Stage: create-vps
......
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