[CI] Fix drone secrets usage
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
0d9c4f38b9
commit
0d4fa6e25b
1 changed files with 5 additions and 1 deletions
|
@ -24,9 +24,13 @@ steps:
|
||||||
image: docker:stable
|
image: docker:stable
|
||||||
environment:
|
environment:
|
||||||
DOCKER_HOST: tcp://docker:2375
|
DOCKER_HOST: tcp://docker:2375
|
||||||
|
USERNAME:
|
||||||
|
from_secret: dockerhub_username
|
||||||
|
PASSWORD:
|
||||||
|
from_secret: dockerhub_password
|
||||||
commands:
|
commands:
|
||||||
- docker build -t kleph/beer .
|
- docker build -t kleph/beer .
|
||||||
- docker login -u $DOCKERHUB_USERNAME -p $DOCKERHUB_PASS
|
- docker login -u $USERNAME -p $PASSWORD
|
||||||
- docker image push kleph/beer
|
- docker image push kleph/beer
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
|
Loading…
Reference in a new issue