From 15059437837a1a20890060342a3ef2fb2d417528 Mon Sep 17 00:00:00 2001 From: Peter Stuifzand Date: Wed, 20 Apr 2022 13:31:44 +0200 Subject: [PATCH] Problem: testing on promotion should not happen Solution: only test on push --- .drone.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index aa93880..dc9fc07 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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