fix docker credentials again

This commit is contained in:
Morgan McMillian 2022-11-29 22:33:58 -08:00
parent ec2dfcec42
commit ca48c2e8d8

3
Jenkinsfile vendored
View file

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