only push builds on master
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
David 2022-04-03 15:33:23 -04:00
parent 886e28f348
commit 2346f17edd

View File

@ -1,4 +1,8 @@
pipeline: pipeline:
test:
image: golang:1.17
commands:
- go test ./...
build: build:
image: docker image: docker
environment: environment:
@ -9,9 +13,13 @@
- docker build -t registry.yetaga.in/library:latest . - docker build -t registry.yetaga.in/library:latest .
- docker push registry.yetaga.in/library:latest - docker push registry.yetaga.in/library:latest
secrets: [docker_username, docker_password] secrets: [docker_username, docker_password]
when:
branch: "master"
services: services:
docker: docker:
image: docker:18.09-dind image: docker:18.09-dind
command: ["--storage-driver=vfs"] command: ["--storage-driver=vfs"]
privileged: true privileged: true
when:
branch: master