clacksme/Jenkinsfile
Morgan McMillian 6b77d41da2
Some checks failed
dreamfall/clacksme/pipeline/head There was a failure building this commit
initial commit
2022-12-28 07:44:37 -08:00

28 lines
1.1 KiB
Groovy

pipeline {
agent none
environment {
IMAGE_TAG = "git.dreamfall.space/thrrgilag/clacksme:latest"
}
stages {
stage('Build docker image') {
agent { label 'docker-build' }
steps {
mattermostSend "Docker build started - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
script {
docker.withRegistry('https://git.dreamfall.space/thrrgilag', 'docker-gitea-creds') {
def customImage = docker.build(${env.IMAGE_TAG})
customImage.push()
}
}
}
post {
success {
mattermostSend color: "good", message: "Docker build success - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
}
failure {
mattermostSend color: "danger", message: "Docker build failure - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
}
}
}
}
}