From bc9a6079d49a971cc027b573e3b0671c771d0f79 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Fri, 7 Apr 2023 19:38:31 +0200 Subject: [PATCH] feat: with secret --- .drone.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.drone.yml b/.drone.yml index d474c08..df2ef84 100644 --- a/.drone.yml +++ b/.drone.yml @@ -9,6 +9,11 @@ steps: path: /var/run environment: DOCKER_BUILDKIT: 1 + DOCKER_PASSWORD: + from_secret: docker_password + DOCKER_USERNAME: + from_secret: docker_username + DOCKER_HOST: docker.io commands: - sleep 5 - echo "${DOCKER_PASSWORD}" | docker login --password-stdin --username="${DOCKER_USERNAME}" "${DOCKER_HOST}"