From e7b1c2cd5b0296f412596be0aca45006c19cca84 Mon Sep 17 00:00:00 2001 From: David Hoese <david.hoese@ssec.wisc.edu> Date: Thu, 2 Jul 2020 14:26:37 -0500 Subject: [PATCH] Use proper way for passing env var as artifact --- .gitlab-ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d667ca8..c690682 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -58,6 +58,8 @@ build ci: # most recent docker image should be tagged with most recent SHA - docker_tag=$(git rev-parse --short HEAD) - echo $docker_tag + # make the docker tag available in later stages + - echo export docker_tag=$docker_tag >cibuild.env - cd chart - |- sed -i "s/^appVersion: .*\$/appVersion: ${docker_tag}/g" ${SUBCOMP_CHART_DIR}/Chart.yaml @@ -66,8 +68,7 @@ build ci: artifacts: paths: - chart/${SUBCOMP_CHART_DIR} - variables: - - docker_tag + - cibuild.env expire_in: 6 hours # XXX: Do we always want to clone the subcomponent # rules: -- GitLab