try registry push
Some checks failed
dreamfall/partybot/pipeline/head There was a failure building this commit

This commit is contained in:
Morgan McMillian 2022-11-29 20:03:05 -08:00
parent 14fd404872
commit fa9b74d105

5
Jenkinsfile vendored
View file

@ -2,6 +2,7 @@ pipeline {
agent none agent none
environment { environment {
SNAPCRAFT_STORE_CREDENTIALS = credentials('snapcraft-store-credentials') SNAPCRAFT_STORE_CREDENTIALS = credentials('snapcraft-store-credentials')
registryCredential = 'jenkins-gitea-id'
} }
options { options {
skipDefaultCheckout(true) skipDefaultCheckout(true)
@ -13,8 +14,8 @@ pipeline {
cleanWs() cleanWs()
checkout scm checkout scm
script { script {
docker.withRegistry('https://git.dreamfall.space', 'jenkins-gitea-id') { docker.withRegistry('https://git.dreamfall.space/thrrgilag', registryCredential) {
def customImage = docker.build('partybot:${env.BUILD_ID}') def customImage = docker.build('partybot:latest')
customImage.push() customImage.push()
} }