Problem: testing on promotion should not happen
Solution: only test on push
This commit is contained in:
parent
150d29d180
commit
1505943783
10
.drone.yml
10
.drone.yml
|
@ -1,12 +1,16 @@
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: build
|
name: build and test
|
||||||
|
|
||||||
workspace:
|
workspace:
|
||||||
base: /go
|
base: /go
|
||||||
path: src/p83.nl/go/ekster
|
path: src/p83.nl/go/ekster
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
|
||||||
services:
|
services:
|
||||||
- name: redis
|
- name: redis
|
||||||
image: redis:5
|
image: redis:5
|
||||||
|
@ -49,7 +53,7 @@ trigger:
|
||||||
- production
|
- production
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: testing
|
- name: build
|
||||||
image: golang:1.18-alpine
|
image: golang:1.18-alpine
|
||||||
environment:
|
environment:
|
||||||
CGO_ENABLED: 0
|
CGO_ENABLED: 0
|
||||||
|
@ -64,7 +68,7 @@ steps:
|
||||||
- name: publish-personal
|
- name: publish-personal
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
depends_on:
|
depends_on:
|
||||||
- testing
|
- build
|
||||||
settings:
|
settings:
|
||||||
repo: registry.stuifzandapp.com/microsub-server
|
repo: registry.stuifzandapp.com/microsub-server
|
||||||
registry: registry.stuifzandapp.com
|
registry: registry.stuifzandapp.com
|
||||||
|
|
Loading…
Reference in New Issue
Block a user