From bb010062342de2ff2e71262bd3b6dd544bef5d49 Mon Sep 17 00:00:00 2001 From: Peter Stuifzand Date: Sat, 20 Nov 2021 21:47:07 +0100 Subject: [PATCH] Problem: binary not build in split pipelines Solution: combine pipelines for build and deploy --- .drone.yml | 29 ++++++++++------------------- 1 file changed, 10 insertions(+), 19 deletions(-) diff --git a/.drone.yml b/.drone.yml index eb96208..ff33ab8 100644 --- a/.drone.yml +++ b/.drone.yml @@ -23,19 +23,6 @@ steps: - go test -v ./... - staticcheck ./... ---- -kind: pipeline -type: docker -name: deploy - -depends_on: - - build - -workspace: - base: /go - path: src/p83.nl/go/ekster - -steps: - name: publish-personal image: plugins/docker settings: @@ -45,6 +32,11 @@ steps: from_secret: docker_username password: from_secret: docker_password + when: + event: + - promote + target: + - production # - name: publish-docker # image: plugins/docker @@ -72,9 +64,8 @@ steps: - cd /home/microsub/microsub - docker-compose pull web - docker-compose up -d - -trigger: - event: - - promote - target: - - production + when: + event: + - promote + target: + - production