Skip to content
Snippets Groups Projects
Verified Commit e7b1c2cd authored by David Hoese's avatar David Hoese
Browse files

Use proper way for passing env var as artifact

parent 513c7862
No related branches found
No related tags found
No related merge requests found
...@@ -58,6 +58,8 @@ build ci: ...@@ -58,6 +58,8 @@ build ci:
# most recent docker image should be tagged with most recent SHA # most recent docker image should be tagged with most recent SHA
- docker_tag=$(git rev-parse --short HEAD) - docker_tag=$(git rev-parse --short HEAD)
- echo $docker_tag - echo $docker_tag
# make the docker tag available in later stages
- echo export docker_tag=$docker_tag >cibuild.env
- cd chart - cd chart
- |- - |-
sed -i "s/^appVersion: .*\$/appVersion: ${docker_tag}/g" ${SUBCOMP_CHART_DIR}/Chart.yaml sed -i "s/^appVersion: .*\$/appVersion: ${docker_tag}/g" ${SUBCOMP_CHART_DIR}/Chart.yaml
...@@ -66,8 +68,7 @@ build ci: ...@@ -66,8 +68,7 @@ build ci:
artifacts: artifacts:
paths: paths:
- chart/${SUBCOMP_CHART_DIR} - chart/${SUBCOMP_CHART_DIR}
variables: - cibuild.env
- docker_tag
expire_in: 6 hours expire_in: 6 hours
# XXX: Do we always want to clone the subcomponent # XXX: Do we always want to clone the subcomponent
# rules: # rules:
......
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