docker-php-apache-mysql/.drone.yml
Aaron Riedel 2441eb6eb9
All checks were successful
continuous-integration/drone/push Build is passing
build but not publish when not in main branch
2022-05-05 11:21:06 +02:00

38 lines
No EOL
646 B
YAML

kind: pipeline
name: deploy
steps:
- name: docker
image: plugins/docker
settings:
username:
from_secret: DOCKER_USERNAME
password:
from_secret: DOCKER_PASSWORD
repo: aaronriedel/php-apache-mysql
tags: latest
when:
branch:
include:
- main
event:
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