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
|
type: 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
|
||||||
pull: never
|
pull: never
|
||||||
settings:
|
settings:
|
||||||
username:
|
username: "${DOCKERHUB_USERNAME}"
|
||||||
from_secret: DOCKERHUB_USERNAME
|
password: "${DOCKERHUB_PASSWORD}"
|
||||||
password:
|
|
||||||
from_secret: DOCKERHUB_PASSWORD
|
|
||||||
repo: glenux/service-ntfy
|
repo: glenux/service-ntfy
|
||||||
tags: "${DRONE_COMMIT_SHA:0:8}"
|
tags: "${DRONE_COMMIT_SHA:0:8}"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue