Skip to content
Snippets Groups Projects
Verified Commit ca715972 authored by Maarten de Waard's avatar Maarten de Waard :angel:
Browse files

find another way to fix delete-image job

TRIGGER_JOBS=ci-test-image-build
parent 6d4446d1
No related branches found
No related tags found
No related merge requests found
......@@ -718,9 +718,10 @@ terminate-droplet:
# Careful! When you run this step manually, you might have to trigger container
# image re-build as well
delete-image:
stage: build
needs:
- job: ci-test-image-build
# Should be in the post-build stage so it automatically gets the artifacts it
# that contain the CI_COMMIT_REF_SLUG variable
stage: create-vps
when: manual
variables:
GIT_STRATEGY: none
script:
......@@ -729,15 +730,3 @@ delete-image:
environment:
name: image/$CI_COMMIT_REF_SLUG
action: stop
rules:
# Copy the rules from ci-test-image-build to prevent broken pipelines when
# that job did not run
- changes:
- Dockerfile
- requirements.txt
- .gitlab/ci_templates/kaniko.yml
when: manual
- if: '$TRIGGER_JOBS =~ /ci-test-image-build/'
when: manual
- if: '$CI_COMMIT_MESSAGE =~ /TRIGGER_JOBS=.*ci-test-image-build/'
when: manual
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