Install docker stage
Some checks failed
Amarillo/amarillo-gitea/amarillo-core/pipeline/head There was a failure building this commit
Some checks failed
Amarillo/amarillo-gitea/amarillo-core/pipeline/head There was a failure building this commit
This commit is contained in:
parent
5c567d2707
commit
88fc38a5dd
10
Jenkinsfile
vendored
10
Jenkinsfile
vendored
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue