You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
centos-go/.drone.yml

63 lines
1.0 KiB
YAML

---
kind: pipeline
name: default
steps:
- name: docker-dryrun
pull: always
image: plugins/docker:linux-amd64
settings:
cache_from: lunny/centos-go
dry_run: true
repo: lunny/centos-go
when:
event:
- pull_request
- name: release-docker
pull: always
image: plugins/docker:linux-amd64
settings:
cache_from: lunny/centos-go
repo: lunny/centos-go
tags:
- latest
environment:
DOCKER_PASSWORD:
from_secret: docker_password
DOCKER_USERNAME:
from_secret: docker_username
when:
branch:
- master
event:
- push
trigger:
ref:
- refs/heads/master
- refs/pull/*/head
---
kind: pipeline
name: release-tag
trigger:
event:
- tag
steps:
- name: release-docker-tag
pull: always
image: plugins/docker:linux-amd64
settings:
cache_from: lunny/centos-go
repo: lunny/centos-go
auto_tag: true
tags:
- ${DRONE_TAG}
password:
from_secret: docker_password
username:
from_secret: docker_username
environment:
VERSION: ${DRONE_TAG}