Skip to content

Commit

Permalink
Merge pull request #310 from NatLibFi/dry-run-of-drone-builds-for-PRs
Browse files Browse the repository at this point in the history
Build but do not publish on pushes and PRs to all branches
  • Loading branch information
juhoinkinen authored Aug 9, 2019
2 parents 0fd6e74 + 2d836e9 commit 51267b3
Showing 1 changed file with 28 additions and 11 deletions.
39 changes: 28 additions & 11 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,17 @@ kind: pipeline
name: default
steps:

- name: docker
- name: build
image: plugins/docker
settings:
dockerfile: Dockerfile
dry_run: true
when:
event:
- push
- pull_request

- name: build_and_publish
image: plugins/docker
settings:
dockerfile: Dockerfile
Expand All @@ -13,8 +23,13 @@ steps:
registry: quay.io
repo: quay.io/natlibfi/annif
tags: [latest]
when:
branch:
- master
event:
- push

- name: docker-dev
- name: build_and_publish-dev
image: plugins/docker
settings:
dockerfile: Dockerfile-dev
Expand All @@ -25,8 +40,13 @@ steps:
registry: quay.io
repo: quay.io/natlibfi/annif
tags: [dev]
when:
branch:
- master
event:
- push

- name: docker-tag-image-with-git-tag
- name: build_publish_and_tag_with_release_version
image: plugins/docker
settings:
dockerfile: Dockerfile
Expand All @@ -37,11 +57,8 @@ steps:
registry: quay.io
repo: quay.io/natlibfi/annif
auto_tag: true
when:
event: tag

trigger:
branch:
- master
event:
- push
when:
branch:
- master
event:
- tag

0 comments on commit 51267b3

Please sign in to comment.