This commit is contained in:
7
Jenkinsfile
vendored
7
Jenkinsfile
vendored
@@ -18,7 +18,8 @@ pipeline {
|
||||
steps {
|
||||
echo "Running ${env.BUILD_ID} on ${env.JENKINS_URL}"
|
||||
echo 'Building..'
|
||||
sh 'docker build -t registry.proxyq.co/jenkins/website:${env.BUILD_ID} .'
|
||||
echo "docker build -t registry.proxyq.co/jenkins/website:${env.BUILD_ID} ."
|
||||
sh "docker build -t registry.proxyq.co/jenkins/website:${env.BUILD_ID} ."
|
||||
}
|
||||
}
|
||||
stage('Test') {
|
||||
@@ -31,8 +32,8 @@ pipeline {
|
||||
stage('Deploy') {
|
||||
steps {
|
||||
echo "${env.ENV_REGISTRY_URL}"
|
||||
sh 'docker login https://registry.proxyq.co -u ${REGISTRY_CREDENTIALS_USR} -p ${REGISTRY_CREDENTIALS_PSW}'
|
||||
sh 'docker push registry.proxyq.co/jenkins/website:${env.BUILD_ID}'
|
||||
sh "docker login https://registry.proxyq.co -u ${REGISTRY_CREDENTIALS_USR} -p ${REGISTRY_CREDENTIALS_PSW}"
|
||||
sh "docker push registry.proxyq.co/jenkins/website:${env.BUILD_ID}"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user