diff --git a/Jenkinsfile b/Jenkinsfile index 2425efd..3908c24 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,6 +11,11 @@ pipeline { } stages { stage('Version') { + agent { + docker { + image '356438515751.dkr.ecr.us-east-1.amazonaws.com:auto-semver' + } + } steps { // runs the automatic semver tool which will version, & tag, runAutoSemver() @@ -19,7 +24,6 @@ pipeline { stage('Build') { steps { - echo "Building ${env.SERVICE} docker image" // Docker build flags are set via the getDockerBuildFlags() shared library. @@ -41,8 +45,7 @@ pipeline { { steps { withEcr { - //sh "docker push ${env.DOCKER_REGISTRY}/${env.SERVICE}:${getVersion('-d')}" - sh "docker push ${env.DOCKER_REGISTRY}/${env.SERVICE}:1.0.0" + sh "docker push ${env.DOCKER_REGISTRY}/${env.SERVICE}:${getVersion('-d')}" } //Copy tar.gz file to s3 bucket