ci: define global environment
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
fb4a2f03d3
commit
2bb4135fa7
1 changed files with 8 additions and 4 deletions
12
.drone.yml
12
.drone.yml
|
@ -3,15 +3,19 @@ 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:
|
||||
from_secret: DOCKERHUB_USERNAME
|
||||
password:
|
||||
from_secret: DOCKERHUB_PASSWORD
|
||||
username: "${DOCKERHUB_USERNAME}"
|
||||
password: "${DOCKERHUB_PASSWORD}"
|
||||
repo: glenux/service-ntfy
|
||||
tags: "${DRONE_COMMIT_SHA:0:8}"
|
||||
|
||||
|
|
Loading…
Reference in a new issue