feat: with secret
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Kasper Juul Hermansen 2023-04-07 19:38:31 +02:00
parent 56d1471ce3
commit bc9a6079d4
Signed by: kjuulh
GPG Key ID: 57B6E1465221F912

View File

@ -9,6 +9,11 @@ steps:
path: /var/run path: /var/run
environment: environment:
DOCKER_BUILDKIT: 1 DOCKER_BUILDKIT: 1
DOCKER_PASSWORD:
from_secret: docker_password
DOCKER_USERNAME:
from_secret: docker_username
DOCKER_HOST: docker.io
commands: commands:
- sleep 5 - sleep 5
- echo "${DOCKER_PASSWORD}" | docker login --password-stdin --username="${DOCKER_USERNAME}" "${DOCKER_HOST}" - echo "${DOCKER_PASSWORD}" | docker login --password-stdin --username="${DOCKER_USERNAME}" "${DOCKER_HOST}"