Commit 5e7e08c6 authored by protolambda's avatar protolambda

ops: fix image branch format, filter out special characters

parent ad8bdf2d
...@@ -218,7 +218,7 @@ jobs: ...@@ -218,7 +218,7 @@ jobs:
export REGISTRY="<<parameters.registry>>" export REGISTRY="<<parameters.registry>>"
export REPOSITORY="<<parameters.repo>>" export REPOSITORY="<<parameters.repo>>"
export IMAGE_TAGS="<<parameters.docker_tags>>" export IMAGE_TAGS=$(echo "<<parameters.docker_tags>>" | sed "s/[^a-zA-Z0-9\n,]/-/g")
export GIT_COMMIT="$(git rev-parse HEAD)" export GIT_COMMIT="$(git rev-parse HEAD)"
export GIT_DATE="$(git show -s --format='%ct')" export GIT_DATE="$(git show -s --format='%ct')"
export GIT_VERSION="<<pipeline.git.tag>>" export GIT_VERSION="<<pipeline.git.tag>>"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment