Mauro Torrez a60e889530
All checks were successful
continuous-integration/drone/push Build is passing
initial import from https://git.mau.ro/mauro/ansible-role-nginx-docker
2019-09-30 13:41:08 -03:00

56 lines
881 B
YAML

---
kind: pipeline
name: default
steps:
- name: build and publish image
image: plugins/docker
settings:
repo: eumau/nginx
auto_tag: true
username:
from_secret: dockerhub_username
password:
from_secret: dockerhub_password
when:
branch:
- master
---
kind: pipeline
name: pull_request
steps:
- name: build image only
image: plugins/docker
settings:
repo: eumau/nginx
auto_tag: true
dry_run: true
trigger:
event:
- pull_request
---
kind: pipeline
name: tags
steps:
- name: docker
image: plugins/docker
settings:
repo: eumau/nginx
username:
from_secret: dockerhub_username
password:
from_secret: dockerhub_password
tags:
- ${DRONE_TAG}
build_args:
- NGINX_VERSION=${DRONE_TAG}
trigger:
event:
- tag