Run autosemver in docker
This commit is contained in:
9
Jenkinsfile
vendored
9
Jenkinsfile
vendored
@ -11,6 +11,11 @@ pipeline {
|
|||||||
}
|
}
|
||||||
stages {
|
stages {
|
||||||
stage('Version') {
|
stage('Version') {
|
||||||
|
agent {
|
||||||
|
docker {
|
||||||
|
image '356438515751.dkr.ecr.us-east-1.amazonaws.com:auto-semver'
|
||||||
|
}
|
||||||
|
}
|
||||||
steps {
|
steps {
|
||||||
// runs the automatic semver tool which will version, & tag,
|
// runs the automatic semver tool which will version, & tag,
|
||||||
runAutoSemver()
|
runAutoSemver()
|
||||||
@ -19,7 +24,6 @@ pipeline {
|
|||||||
stage('Build') {
|
stage('Build') {
|
||||||
steps {
|
steps {
|
||||||
|
|
||||||
|
|
||||||
echo "Building ${env.SERVICE} docker image"
|
echo "Building ${env.SERVICE} docker image"
|
||||||
|
|
||||||
// Docker build flags are set via the getDockerBuildFlags() shared library.
|
// Docker build flags are set via the getDockerBuildFlags() shared library.
|
||||||
@ -41,8 +45,7 @@ pipeline {
|
|||||||
{
|
{
|
||||||
steps {
|
steps {
|
||||||
withEcr {
|
withEcr {
|
||||||
//sh "docker push ${env.DOCKER_REGISTRY}/${env.SERVICE}:${getVersion('-d')}"
|
sh "docker push ${env.DOCKER_REGISTRY}/${env.SERVICE}:${getVersion('-d')}"
|
||||||
sh "docker push ${env.DOCKER_REGISTRY}/${env.SERVICE}:1.0.0"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//Copy tar.gz file to s3 bucket
|
//Copy tar.gz file to s3 bucket
|
||||||
|
Reference in New Issue
Block a user