Install docker stage
Some checks failed
Amarillo/amarillo-gitea/amarillo-core/pipeline/head There was a failure building this commit

This commit is contained in:
Csaba 2023-12-20 12:24:27 +01:00
parent 5c567d2707
commit 88fc38a5dd

10
Jenkinsfile vendored
View file

@ -46,10 +46,16 @@ pipeline {
sh 'python -m twine upload --skip-existing --verbose --repository-url $TWINE_REPO_URL --username $GITEA_CREDS_USR --password $GITEA_CREDS_PSW ./dist/*'
}
}
stage('Install docker') {
steps {
echo 'Installing docker'
sh 'curl -fsSl https://get.docker.com | sh'
}
}
stage('Build docker image') {
steps {
echo 'Building image'
script{
script {
docker.build("${OWNER}/${IMAGE_NAME}:${TAG}")
}
}
@ -57,7 +63,7 @@ pipeline {
stage('Push image to container registry') {
steps {
echo 'Pushing image to registry'
script{
script {
docker.withRegistry(REGISTRY_URL, GITEA_CREDS){
docker.image("${OWNER}/${IMAGE_NAME}:${TAG}").push()
}