Skip to content
Snippets Groups Projects
Commit b85e0a37 authored by Julien Leduc's avatar Julien Leduc
Browse files

Cannot use before_script exported variables in docker build stage... Those are empty

parent dd2b3576
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@ stages:
- build:dockerimage
before_script:
- export CTA_BUILD_ID=$(date +%Y%m%d)git$(echo ${CI_BUILD_REF} | cut -c1-8)
- export CTA_BUILD_ID=${CI_PIPELINE_ID}git${CI_BUILD_REF:0:8}
- echo "Exporting CTA_BUILD_ID=${CTA_BUILD_ID}"
cta_srpm:
......@@ -54,5 +54,5 @@ ctafrontend_docker:
script:
- ""
variables:
TO: gitlab-registry.cern.ch/cta/cta-orchestration:${CTA_BUILD_ID}
TO: gitlab-registry.cern.ch/cta/cta-orchestration:${CI_PIPELINE_ID}git${CI_BUILD_REF:0:8}
DOCKER_FILE: continuousintegration/docker/ctafrontend/cc7/Dockerfile
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