fix: jenkinsfile
@@ -155,8 +155,9 @@ pipeline {
def runKaniko() {
sh '''#!/busybox/sh
+ GIT_BRANCH_SLUG=$(echo $GIT_BRANCH | sed -e 's/\\//-/g')
/kaniko/executor -f `pwd`/Dockerfile_release -c `pwd` --build-arg BINARY=btc-parachain-${IMAGE} \
- --destination=${REGISTRY}/${REPOSITORY}/${IMAGE}:${BRANCH} \
- --destination=${REGISTRY}/${REPOSITORY}/${IMAGE}:${BRANCH}-${GIT_COMMIT:0:6}
+ --destination=${REGISTRY}/${REPOSITORY}/${IMAGE}:${GIT_BRANCH_SLUG} \
+ --destination=${REGISTRY}/${REPOSITORY}/${IMAGE}:${GIT_BRANCH_SLUG}-${GIT_COMMIT:0:6}
'''
}
