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
|
||||
environment {
|
||||
SNAPCRAFT_STORE_CREDENTIALS = credentials('snapcraft-store-credentials')
|
||||
registryCredential = 'jenkins-gitea-id'
|
||||
}
|
||||
options {
|
||||
skipDefaultCheckout(true)
|
||||
|
@ -13,8 +14,8 @@ pipeline {
|
|||
cleanWs()
|
||||
checkout scm
|
||||
script {
|
||||
docker.withRegistry('https://git.dreamfall.space', 'jenkins-gitea-id') {
|
||||
def customImage = docker.build('partybot:${env.BUILD_ID}')
|
||||
docker.withRegistry('https://git.dreamfall.space/thrrgilag', registryCredential) {
|
||||
def customImage = docker.build('partybot:latest')
|
||||
|
||||
customImage.push()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue