build but not publish when not in main branch
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Aaron Riedel 2022-05-05 11:21:06 +02:00
parent 17fc65bb96
commit 2441eb6eb9
Signed by: aaron
GPG key ID: 643004654D40D577

View file

@ -13,6 +13,26 @@ steps:
tags: latest
when:
branch:
- main
include:
- main
event:
- push
include:
- push
- name: docker-build
image: plugins/docker
settings:
username:
from_secret: DOCKER_USERNAME
password:
from_secret: DOCKER_PASSWORD
repo: aaronriedel/php-apache-mysql
tags: latest
dry_run: true
when:
branch:
exclude:
- main
event:
exclude:
- push