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:
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
@@ -7,7 +7,7 @@ pipeline {
|
|||||||
}
|
}
|
||||||
|
|
||||||
environment {
|
environment {
|
||||||
REGISTRY = 'https://gitea.innovation-hub-niedersachsen.de//innohub/-'
|
REGISTRY = 'https://gitea.innovation-hub-niedersachsen.de/'
|
||||||
IMAGE = 'tatort-app'
|
IMAGE = 'tatort-app'
|
||||||
USER = 'jared'
|
USER = 'jared'
|
||||||
TOKEN = credentials('74a7c9bb-c80f-4699-ab0e-f98fb2f9a8e6')
|
TOKEN = credentials('74a7c9bb-c80f-4699-ab0e-f98fb2f9a8e6')
|
||||||
@@ -46,7 +46,8 @@ pipeline {
|
|||||||
|
|
||||||
stage('Push image in gitea registry') {
|
stage('Push image in gitea registry') {
|
||||||
steps {
|
steps {
|
||||||
sh "docker push ${REGISTRY}/${USER}/${IMAGE}:latest"
|
sh "docker login ${REGISTRY}/access_token=${TOKEN}"
|
||||||
|
sh "docker push ${REGISTRY}/-/${IMAGE}:latest"
|
||||||
sh "docker logout ${REGISTRY}"
|
sh "docker logout ${REGISTRY}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user