Skip to content

Commit

Permalink
Add the Jenkinsfile
Browse files Browse the repository at this point in the history
  • Loading branch information
dano-reisys committed Oct 20, 2017
1 parent c847cb4 commit 1b14946
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions Jenkinsfile
@@ -0,0 +1,49 @@
pipeline {
agent none

stages {


stage('Build::Packer') {
agent {
docker {
image 'hashicorp/packer'
}

}

steps {
parallel(
"catalog-web": {
sh 'packer build packer/catalog-web.json'
},

"catalog-harvester": {
sh 'packer build packer/catalog-harvester.json'
},

"solr": {
sh 'packer build packer/solr.json'
}
)
}

}


stage('Deploy::Terragrunt') {
agent any
steps {
checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[url: 'https://github.com/GSA/datagov-infrastructure-live']]])

sh 'cd dev/vpc && terragrunt apply'

sh 'cd dev/db && terragrunt apply'

sh 'cd dev/app && terragrunt apply'
}
}


}
}

0 comments on commit 1b14946

Please sign in to comment.