Skip to content
This repository has been archived by the owner on Jan 25, 2023. It is now read-only.

Commit

Permalink
Build images for PRs/branches
Browse files Browse the repository at this point in the history
  • Loading branch information
brycekahle committed Feb 21, 2018
1 parent 7fdb498 commit 7473591
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Jenkinsfile
Expand Up @@ -3,6 +3,18 @@ pipeline {

stages {
stage("Build") {
when {
not { branch 'master' }
}
steps {
sh "docker build ."
}
}

stage("Build Tagged") {
when {
branch 'master'
}
steps {
sh "docker build -t netlify/build:latest ."
sh "docker build --squash -t netlify/build:squash ."
Expand Down

0 comments on commit 7473591

Please sign in to comment.