From 3d08f0b185bbfdeda1a80e9b2fcdc39dee595679 Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Sun, 9 Aug 2020 15:15:14 +0200 Subject: [PATCH] Update drone --- .drone.yml | 50 ++++++++++++++++++++++++++------------------------ 1 file changed, 26 insertions(+), 24 deletions(-) diff --git a/.drone.yml b/.drone.yml index c4a9303..3c4599f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -4,7 +4,7 @@ kind: pipeline name: build-stable-container steps: - - name: docker + - name: build stable container image: plugins/docker settings: username: @@ -12,13 +12,36 @@ steps: password: from_secret: docker_password repo: keyoxide/keyoxide - tags: stable + auto_tag: true trigger: branch: - main event: - push + - tag + +--- + +kind: pipeline +name: build-dev-container + +steps: + - name: build dev container + image: plugins/docker + settings: + username: + from_secret: docker_username + password: + from_secret: docker_password + repo: keyoxide/keyoxide + tags: dev + +trigger: + branch: + - dev + event: + - push --- @@ -45,34 +68,13 @@ trigger: - main event: - push + - tag depends_on: - build-stable-container --- -kind: pipeline -name: build-dev-container - -steps: - - name: docker - image: plugins/docker - settings: - username: - from_secret: docker_username - password: - from_secret: docker_password - repo: keyoxide/keyoxide - tags: dev - -trigger: - branch: - - dev - event: - - push - ---- - kind: pipeline type: exec name: deploy-dev