Skip to content

Commit

Permalink
Update Dockerfile to use offline cache
Browse files Browse the repository at this point in the history
  • Loading branch information
rhyslbw committed Jul 6, 2020
1 parent ba9171a commit 16e2bf0
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions Jenkinsfile
Expand Up @@ -38,12 +38,13 @@ pipeline {
}
}
stage('Publish: Git Revision') {
steps {
sh "docker tag inputoutput/cardano-graphql:${PACKAGE_JSON.version} inputoutput/cardano-graphql:${env.GIT_COMMIT}"
sh "docker tag inputoutput/cardano-graphql-hasura:${PACKAGE_JSON.version} inputoutput/cardano-graphql-hasura:${env.GIT_COMMIT}"
sh "docker push inputoutput/cardano-graphql:${env.GIT_COMMIT}"
sh "docker push inputoutput/cardano-graphql-hasura:${env.GIT_COMMIT}"
}
steps {
PACKAGE_JSON = readJSON file: 'package.json'
sh "docker tag inputoutput/cardano-graphql:${PACKAGE_JSON.version} inputoutput/cardano-graphql:${env.GIT_COMMIT}"
sh "docker tag inputoutput/cardano-graphql-hasura:${PACKAGE_JSON.version} inputoutput/cardano-graphql-hasura:${env.GIT_COMMIT}"
sh "docker push inputoutput/cardano-graphql:${env.GIT_COMMIT}"
sh "docker push inputoutput/cardano-graphql-hasura:${env.GIT_COMMIT}"
}
}
stage('Publish: Master Branch') {
when {
Expand Down

0 comments on commit 16e2bf0

Please sign in to comment.