Skip to content

Commit

Permalink
Dockerize master branch only by default. This can be overwritten with…
Browse files Browse the repository at this point in the history
… build params while triggering the job or in CI config for a branch.
  • Loading branch information
mariha committed Aug 20, 2020
1 parent e0c507a commit e8cf345
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ version: 2.1
parameters:
publish-docker-image:
type: boolean
default: true
default: false
image-tag:
type: string
default: "test" # << pipeline.git.branch >>
default: << pipeline.git.branch >> # "test"

jobs:
run-tests:
Expand Down Expand Up @@ -105,7 +105,7 @@ workflows:
- << pipeline.parameters.publish-docker-image >>
jobs:
- run-tests
build-deploy:
build-dockerize:
when:
or:
- equal: [ master, << pipeline.git.branch >> ]
Expand Down

0 comments on commit e8cf345

Please sign in to comment.