try registry push
Some checks failed
dreamfall/partybot/pipeline/head There was a failure building this commit
Some checks failed
dreamfall/partybot/pipeline/head There was a failure building this commit
This commit is contained in:
parent
14fd404872
commit
fa9b74d105
1 changed files with 3 additions and 2 deletions
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
|
@ -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()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue