From 533d45f25400be946f0af27ae1579534d5632d2e Mon Sep 17 00:00:00 2001 From: Jesper Hess Nielsen Date: Sun, 3 Mar 2019 15:14:42 +0100 Subject: [PATCH] Limit CI releases to commits to master --- .drone.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index 13dd282..1084b35 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,14 +1,14 @@ pipeline: - build_website: + build: image: ruby commands: - gem install bundler - bundle install - bundle exec jekyll build - docker_build: + docker: image: plugins/docker - repo: docker.data.coop/data-coop-website-test + repo: docker.data.coop/data-coop-website registry: docker.data.coop secrets: [DOCKER_USERNAME, DOCKER_PASSWORD] username: @@ -18,3 +18,6 @@ pipeline: tag: - "${DRONE_BUILD_NUMBER}" - "latest" + when: + branch: + - master