ci: move secrets
This commit is contained in:
parent
3810a95155
commit
ec6d6e3fa0
1 changed files with 27 additions and 30 deletions
57
.drone.yml
57
.drone.yml
|
@ -3,42 +3,39 @@ kind: pipeline
|
|||
type: docker
|
||||
name: default
|
||||
|
||||
environment:
|
||||
DOCKERHUB_USERNAME:
|
||||
from_secret: DOCKERHUB_USERNAME
|
||||
DOCKERHUB_PASSWORD:
|
||||
from_secret: DOCKERHUB_PASSWORD
|
||||
|
||||
steps:
|
||||
- name: docker
|
||||
image: plugins/docker
|
||||
pull: never
|
||||
settings:
|
||||
username: "${DOCKERHUB_USERNAME}"
|
||||
password: "${DOCKERHUB_PASSWORD}"
|
||||
username:
|
||||
from_secret: DOCKERHUB_USERNAME
|
||||
password:
|
||||
from_secret: DOCKERHUB_PASSWORD
|
||||
repo: glenux/service-ntfy
|
||||
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_${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
|
||||
# - 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