fixed push image job
Some checks failed
InnoHub Processor/tatort/pipeline/head There was a failure building this commit
Some checks failed
InnoHub Processor/tatort/pipeline/head There was a failure building this commit
This commit is contained in:
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
@@ -46,9 +46,11 @@ pipeline {
|
||||
|
||||
stage('Push image in gitea registry') {
|
||||
steps {
|
||||
sh "docker login ${REGISTRY}/access_token=${TOKEN}"
|
||||
sh "docker push ${REGISTRY}/-/${IMAGE}:latest"
|
||||
sh "docker logout ${REGISTRY}"
|
||||
sh """
|
||||
echo "${TOKEN}" | docker login ${REGISTRY} -u "${USER}" --password-stdin
|
||||
docker push ${REGISTRY}/-/${IMAGE}:latest
|
||||
docker logout ${REGISTRY}
|
||||
"""
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user