Problem: binary not build in split pipelines
Solution: combine pipelines for build and deploy
This commit is contained in:
parent
7c4711da1b
commit
bb01006234
29
.drone.yml
29
.drone.yml
|
@ -23,19 +23,6 @@ steps:
|
||||||
- go test -v ./...
|
- go test -v ./...
|
||||||
- staticcheck ./...
|
- staticcheck ./...
|
||||||
|
|
||||||
---
|
|
||||||
kind: pipeline
|
|
||||||
type: docker
|
|
||||||
name: deploy
|
|
||||||
|
|
||||||
depends_on:
|
|
||||||
- build
|
|
||||||
|
|
||||||
workspace:
|
|
||||||
base: /go
|
|
||||||
path: src/p83.nl/go/ekster
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: publish-personal
|
- name: publish-personal
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
|
@ -45,6 +32,11 @@ steps:
|
||||||
from_secret: docker_username
|
from_secret: docker_username
|
||||||
password:
|
password:
|
||||||
from_secret: docker_password
|
from_secret: docker_password
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- promote
|
||||||
|
target:
|
||||||
|
- production
|
||||||
|
|
||||||
# - name: publish-docker
|
# - name: publish-docker
|
||||||
# image: plugins/docker
|
# image: plugins/docker
|
||||||
|
@ -72,9 +64,8 @@ steps:
|
||||||
- cd /home/microsub/microsub
|
- cd /home/microsub/microsub
|
||||||
- docker-compose pull web
|
- docker-compose pull web
|
||||||
- docker-compose up -d
|
- docker-compose up -d
|
||||||
|
when:
|
||||||
trigger:
|
event:
|
||||||
event:
|
- promote
|
||||||
- promote
|
target:
|
||||||
target:
|
- production
|
||||||
- production
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user