build but not publish when not in main branch
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
17fc65bb96
commit
2441eb6eb9
1 changed files with 22 additions and 2 deletions
24
.drone.yml
24
.drone.yml
|
@ -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
|
Loading…
Reference in a new issue