Problem: binary not build in split pipelines
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is failing

Solution: combine pipelines for build and deploy
This commit is contained in:
Peter Stuifzand 2021-11-20 21:47:07 +01:00
parent 7c4711da1b
commit bb01006234
Signed by: peter
GPG Key ID: 374322D56E5209E8

View File

@ -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