Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build but do not publish on pushes and PRs to all branches #310

Merged
merged 1 commit into from
Aug 9, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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