fixed push image job
Some checks failed
InnoHub Processor/tatort/pipeline/head There was a failure building this commit

This commit is contained in:
2025-06-25 14:25:28 +02:00
parent b991904921
commit b432554cca

8
Jenkinsfile vendored
View File

@@ -46,9 +46,11 @@ pipeline {
stage('Push image in gitea registry') { stage('Push image in gitea registry') {
steps { steps {
sh "docker login ${REGISTRY}/access_token=${TOKEN}" sh """
sh "docker push ${REGISTRY}/-/${IMAGE}:latest" echo "${TOKEN}" | docker login ${REGISTRY} -u "${USER}" --password-stdin
sh "docker logout ${REGISTRY}" docker push ${REGISTRY}/-/${IMAGE}:latest
docker logout ${REGISTRY}
"""
} }
} }
} }