fix docker image build
All checks were successful
dreamfall/clacksme/pipeline/head This commit looks good
All checks were successful
dreamfall/clacksme/pipeline/head This commit looks good
This commit is contained in:
parent
6b77d41da2
commit
62b8ff1ab2
1 changed files with 1 additions and 4 deletions
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
|
@ -1,8 +1,5 @@
|
||||||
pipeline {
|
pipeline {
|
||||||
agent none
|
agent none
|
||||||
environment {
|
|
||||||
IMAGE_TAG = "git.dreamfall.space/thrrgilag/clacksme:latest"
|
|
||||||
}
|
|
||||||
stages {
|
stages {
|
||||||
stage('Build docker image') {
|
stage('Build docker image') {
|
||||||
agent { label 'docker-build' }
|
agent { label 'docker-build' }
|
||||||
|
@ -10,7 +7,7 @@ pipeline {
|
||||||
mattermostSend "Docker build started - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
mattermostSend "Docker build started - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
|
||||||
script {
|
script {
|
||||||
docker.withRegistry('https://git.dreamfall.space/thrrgilag', 'docker-gitea-creds') {
|
docker.withRegistry('https://git.dreamfall.space/thrrgilag', 'docker-gitea-creds') {
|
||||||
def customImage = docker.build(${env.IMAGE_TAG})
|
def customImage = docker.build("git.dreamfall.space/thrrgilag/clacksme:latest")
|
||||||
customImage.push()
|
customImage.push()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue