ci: Add rules for build
This commit is contained in:
parent
afbcb3dd74
commit
4623d8b7e9
1 changed files with 34 additions and 4 deletions
38
.drone.yml
38
.drone.yml
|
@ -1,14 +1,44 @@
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
|
ype: docker
|
||||||
name: default
|
name: default
|
||||||
|
|
||||||
|
environment:
|
||||||
|
DOCKERHUB_USERNAME:
|
||||||
|
from_secret: DOCKERHUB_USERNAME
|
||||||
|
DOCKERHUB_PASSWORD:
|
||||||
|
from_secret: DOCKERHUB_PASSWORD
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: docker
|
- name: docker
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
username: kevinbacon
|
username: ${DOCKERHUB_USERNAME}
|
||||||
password: pa55word
|
password: ${DOCKERHUB_PASSWORD}
|
||||||
repo: foo/bar
|
repo: glenux/service-ntfy
|
||||||
tags: latest
|
tags: ${DRONE_BRANCH//\//-}-${DRONE_COMMIT_SHA:0:8}
|
||||||
|
|
||||||
|
- name: docker
|
||||||
|
image: plugins/docker
|
||||||
|
settings:
|
||||||
|
username: ${DOCKERHUB_USERNAME}
|
||||||
|
password: ${DOCKERHUB_PASSWORD}
|
||||||
|
repo: glenux/service-ntfy
|
||||||
|
tags: latest_${DRONE_BRANCH}
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- master
|
||||||
|
- develop
|
||||||
|
- feature/*
|
||||||
|
|
||||||
|
- name: docker
|
||||||
|
image: plugins/docker
|
||||||
|
settings:
|
||||||
|
username: ${DOCKERHUB_USERNAME}
|
||||||
|
password: ${DOCKERHUB_PASSWORD}
|
||||||
|
repo: glenux/service-ntfy
|
||||||
|
tags: latest
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- master
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in a new issue