Test
Apps/everybody-mov/pipeline/head There was a failure building this commit
Details
Apps/everybody-mov/pipeline/head There was a failure building this commit
Details
This commit is contained in:
parent
5e4a63af9c
commit
c8bd73c7cd
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
"extends": "recommended",
|
||||||
|
"rules": {
|
||||||
|
"NestedBlockDepth": {
|
||||||
|
"enabled": false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,9 +1,9 @@
|
||||||
pipeline {
|
pipeline {
|
||||||
|
|
||||||
agent none
|
agent none
|
||||||
|
|
||||||
environment {
|
environment {
|
||||||
HOME = "${env.WORKSPACE}"
|
HOME = "${env.WORKSPACE}"
|
||||||
|
CREDENTIALS_ID = 'digital-ocean-ailuridae-registry'
|
||||||
DOCKER_REGISTRY = 'https://registry.digitalocean.com'
|
DOCKER_REGISTRY = 'https://registry.digitalocean.com'
|
||||||
DOCKER_IMAGE_NAME = 'registry.digitalocean.com/ailuridae-registry/ailuridae.io/everybodymov'
|
DOCKER_IMAGE_NAME = 'registry.digitalocean.com/ailuridae-registry/ailuridae.io/everybodymov'
|
||||||
DOCKER_IMAGE = ''
|
DOCKER_IMAGE = ''
|
||||||
|
@ -48,14 +48,19 @@ pipeline {
|
||||||
agent {
|
agent {
|
||||||
label 'main'
|
label 'main'
|
||||||
}
|
}
|
||||||
when {
|
// when {
|
||||||
branch 'main'
|
// branch 'main'
|
||||||
}
|
// }
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
docker.withRegistry(env.DOCKER_REGISTRY, 'digital-ocean-ailuridae-registry') {
|
withCredentials(
|
||||||
DOCKER_IMAGE.push("${BUILD_NUMBER}")
|
credentialsId: env.CREDENTIALS_ID,
|
||||||
DOCKER_IMAGE.push('latest')
|
usernameVariable: 'JENKINS_USERNAME',
|
||||||
|
passwordVariable: 'JENKINS_PASSWORD') {
|
||||||
|
docker.withRegistry(env.DOCKER_REGISTRY, env.CREDENTIALS_ID) {
|
||||||
|
DOCKER_IMAGE.push("${BUILD_NUMBER}")
|
||||||
|
DOCKER_IMAGE.push('latest')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -69,5 +74,4 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue