Problem: testing on promotion should not happen
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing

Solution: only test on push
This commit is contained in:
Peter Stuifzand 2022-04-20 13:31:44 +02:00
parent 150d29d180
commit 1505943783
Signed by: peter
GPG Key ID: 374322D56E5209E8

View File

@ -1,12 +1,16 @@
---
kind: pipeline
type: docker
name: build
name: build and test
workspace:
base: /go
path: src/p83.nl/go/ekster
trigger:
event:
- push
services:
- name: redis
image: redis:5
@ -49,7 +53,7 @@ trigger:
- production
steps:
- name: testing
- name: build
image: golang:1.18-alpine
environment:
CGO_ENABLED: 0
@ -64,7 +68,7 @@ steps:
- name: publish-personal
image: plugins/docker
depends_on:
- testing
- build
settings:
repo: registry.stuifzandapp.com/microsub-server
registry: registry.stuifzandapp.com