From 2346f17eddc6b0078b4dbdf4b38d0058d0dbe44f Mon Sep 17 00:00:00 2001 From: David Ashby Date: Sun, 3 Apr 2022 15:33:23 -0400 Subject: [PATCH] only push builds on master --- .woodpecker.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.woodpecker.yml b/.woodpecker.yml index f2d0c67..b834999 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,4 +1,8 @@ pipeline: + test: + image: golang:1.17 + commands: + - go test ./... build: image: docker environment: @@ -9,9 +13,13 @@ - docker build -t registry.yetaga.in/library:latest . - docker push registry.yetaga.in/library:latest secrets: [docker_username, docker_password] + when: + branch: "master" services: docker: image: docker:18.09-dind command: ["--storage-driver=vfs"] privileged: true + when: + branch: master