feat(Version): add versionfile workflow 3

This commit is contained in:
Wolfram Gulde 2021-12-08 16:14:56 +01:00
parent 20eaf85c96
commit dca8c92ced

View File

@ -10,7 +10,9 @@
variables: variables:
<<: *container-publish-common-variables <<: *container-publish-common-variables
before_script: 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 - export PARSED_VERSION=$(echo $IMAGE_TAG | sed -r 's/\+/_/g') # Replace + sign since this is not valid in a docker tag
- echo $PARSED_VERSION - echo $PARSED_VERSION
stage: package stage: package