diff --git a/Jenkinsfile b/Jenkinsfile index bf202cd..7db9b6a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -7,7 +7,7 @@ pipeline { } environment { - REGISTRY = 'https://gitea.innovation-hub-niedersachsen.de//innohub/-' + REGISTRY = 'https://gitea.innovation-hub-niedersachsen.de/' IMAGE = 'tatort-app' USER = 'jared' TOKEN = credentials('74a7c9bb-c80f-4699-ab0e-f98fb2f9a8e6') @@ -46,7 +46,8 @@ pipeline { stage('Push image in gitea registry') { 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}" } }