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

forward artifacts so create job knows the image name

parent c79fbe76
No related branches found
No related tags found
No related merge requests found
......@@ -195,14 +195,6 @@ ci-test-image-build:
after_script:
- |
echo "CI_CONTAINER_TAG=${CI_COMMIT_REF_SLUG}" | tee .ci.env
artifacts:
paths:
- .ci.env
expire_in: 1 month
when: always
reports:
dotenv:
.ci.env
environment:
name: image/$CI_COMMIT_REF_SLUG
url: https://open.greenhost.net:4567/stackspin/stackspin/stackspin-ci:${CI_COMMIT_REF_SLUG}
......@@ -220,6 +212,7 @@ ci-test-image-build:
- if: '$CI_COMMIT_MESSAGE =~ /TRIGGER_JOBS=.*ci-test-image-build/'
extends:
- .kaniko_build
- .report_artifacts
interruptible: true
report-ci-image-tag:
......@@ -237,14 +230,6 @@ report-ci-image-tag:
CI_CONTAINER_TAG="${CI_COMMIT_REF_SLUG}"
fi
echo "CI_CONTAINER_TAG=${CI_CONTAINER_TAG}" | tee .ci.env
artifacts:
paths:
- .ci.env
expire_in: 1 month
when: always
reports:
dotenv:
.ci.env
rules:
# Make sure this job does not run if ci-test-image-build runs
- changes:
......@@ -257,6 +242,8 @@ report-ci-image-tag:
- if: '$CI_COMMIT_MESSAGE =~ /TRIGGER_JOBS=.*ci-test-image-build/'
when: never # Never run when ci-test-image is triggered manually
- when: always
extends:
- .report_artifacts
interruptible: true
......@@ -287,6 +274,8 @@ terminate-droplet:
environment:
name: $CI_COMMIT_REF_SLUG
action: stop
extends:
- .report_artifacts
create-droplet:
stage: install-cluster
......
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