nginx-php/.drone.yml

47 lines
789 B
YAML
Raw Normal View History

---
kind: pipeline
type: docker
name: Build
steps:
- name: build
image: plugins/docker
repo: docker.pbiernat.dev/nginx-php
username:
from_secret: docker_username
password:
from_secret: docker_password
commands:
- sleep 5
- docker build -t docker.pbiernat.dev/nginx-php .
- docker images | grep nginx-php
volumes:
- name: docker-sock
path: /var/run
- name: publish
image: plugins/docker
repo: docker.pbiernat.dev/nginx-php
username:
from_secret: docker_username
password:
from_secret: docker_password
when:
branch: master
volumes:
- name: docker-sock
path: /var/run
services:
- name: docker
image: docker:dind
privileged: true
volumes:
- name: docker-sock
path: /var/run
volumes:
- name: docker-sock
temp: {}