From dca8c92cedda273a019960f58a2e95b0a2624093 Mon Sep 17 00:00:00 2001 From: Wolfram Gulde Date: Wed, 8 Dec 2021 16:14:56 +0100 Subject: [PATCH] feat(Version): add versionfile workflow 3 --- container-publish.gitlab-ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/container-publish.gitlab-ci.yml b/container-publish.gitlab-ci.yml index ff09f9e..7d36788 100644 --- a/container-publish.gitlab-ci.yml +++ b/container-publish.gitlab-ci.yml @@ -10,7 +10,9 @@ variables: <<: *container-publish-common-variables before_script: - - if [ "$USE_VERSIONFILE" == "true" ]; then IMAGE_TAG=$(cat ./$ARTIFACT); fi + - pwd + - ls -l + - if [ "$USE_VERSIONFILE" == "true" ]; then IMAGE_TAG=$(cat ./"$ARTIFACT"); fi - export PARSED_VERSION=$(echo $IMAGE_TAG | sed -r 's/\+/_/g') # Replace + sign since this is not valid in a docker tag - echo $PARSED_VERSION stage: package