From 413444926092a55bc3a2cecca7aaee50e159cfcb Mon Sep 17 00:00:00 2001 From: Florian Brinker Date: Mon, 10 May 2021 18:52:56 +0200 Subject: [PATCH] Update Drone config into seperate pipeline --- .drone.yml | 43 ++++++++++++++++++++++++++----------------- 1 file changed, 26 insertions(+), 17 deletions(-) diff --git a/.drone.yml b/.drone.yml index 91600b3..1641db8 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,10 +1,35 @@ --- kind: pipeline type: docker -name: production +name: Production steps: +- name: Build Dockerfile + image: alpine + commands: + - apk update && apk add bash curl grep jq sed + - ./build.sh +- name: Build & Publish Image + image: plugins/docker + settings: + repo: fbrinker/tileboard + dockerfile: Dockerfile + username: + from_secret: docker_username + password: + from_secret: docker_password + +trigger: + branch: + - master + +--- +kind: pipeline +type: docker +name: Development + +steps: - name: Check for changes in master branch image: alpine commands: @@ -35,22 +60,6 @@ steps: 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 Release Image - image: plugins/docker - settings: - repo: fbrinker/tileboard - dockerfile: Dockerfile - username: - from_secret: docker_username - password: - from_secret: docker_password - trigger: branch: - master \ No newline at end of file