ci: avoid git safe-directory issue in image tag
This commit is contained in:
parent
697461d83f
commit
078359dd3f
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@ -268,7 +268,7 @@ NODE
|
||||
sh '''
|
||||
set -eu
|
||||
. build/version.env
|
||||
SHORT_SHA="$(git rev-parse --short HEAD)"
|
||||
SHORT_SHA="$(printf '%s' "${GIT_COMMIT:-nohash}" | cut -c1-8)"
|
||||
IMAGE_TAG="${APP_VERSION}-${BUILD_NUMBER}-${SHORT_SHA}"
|
||||
|
||||
printf '%s' "${HARBOR_PASSWORD}" | docker login registry.bstein.dev -u "${HARBOR_USERNAME}" --password-stdin
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user