nginx-php/.drone.yml

101 lines
1.6 KiB
YAML
Raw Permalink Normal View History

---
kind: pipeline
type: docker
name: Build
steps:
- name: build_release
image: plugins/docker
when:
event: tag
volumes:
- name: docker-sock
path: /var/run
- name: publish_release
image: plugins/docker
environment:
DOCKER_USERNAME:
from_secret: registry_username
DOCKER_PASSWORD:
from_secret: registry_password
when:
event: tag
volumes:
- name: docker-sock
path: /var/run
- name: build_develop
image: plugins/docker
commands:
- ./scripts/drone-build.sh
when:
branch: develop
2021-11-23 15:29:27 +01:00
event:
- push
volumes:
- name: docker-sock
path: /var/run
- name: publish_develop
image: plugins/docker
environment:
DOCKER_USERNAME:
from_secret: registry_username
DOCKER_PASSWORD:
from_secret: registry_password
commands:
- ./scripts/drone-publish.sh
when:
branch: develop
event:
- push
volumes:
- name: docker-sock
path: /var/run
- name: build_feature
image: plugins/docker
commands:
- ./scripts/drone-build.sh
when:
branch:
- feature_*
- develop
event:
- push
- pull_request
volumes:
- name: docker-sock
path: /var/run
- name: publish_feature
image: plugins/docker
environment:
DOCKER_USERNAME:
from_secret: registry_username
DOCKER_PASSWORD:
from_secret: registry_password
commands:
- ./scripts/drone-publish.sh
when:
2021-11-23 15:43:30 +01:00
branch: develop
event:
- pull_request
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: {}
2021-11-23 22:45:05 +01:00