From cfd81ff5bd4337a252490f91d557462f28f4aa50 Mon Sep 17 00:00:00 2001 From: akloeckner Date: Mon, 10 May 2021 09:20:25 +0000 Subject: [PATCH] Add nightly build steps * TODO: Do not run nightly builds, if no changes in `master` branch. --- .drone.yml | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 654a099..edbcbac 100644 --- a/.drone.yml +++ b/.drone.yml @@ -4,13 +4,38 @@ type: docker name: default steps: -- name: Build Dockerfile + +- name: Build & Publish Development Image + image: plugins/docker + settings: + repo: fbrinker/tileboard + dockerfile: Dockerfile.nightly + target: dev + tags: dev + username: + from_secret: docker_username + password: + from_secret: docker_password + +- name: Build & Publish Nightly Image + image: plugins/docker + settings: + repo: fbrinker/tileboard + dockerfile: Dockerfile.nightly + target: nightly + tags: nightly + username: + from_secret: docker_username + password: + from_secret: docker_password + +- name: Prepare Release Dockerfile image: alpine commands: - apk update && apk add bash curl grep jq sed - ./build.sh -- name: Build & Publish Image +- name: Build & Publish Release Image image: plugins/docker settings: repo: fbrinker/tileboard