From a6b82d2f37d805ce4abe25592a5d839c08d994f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Thu, 6 Aug 2020 23:02:04 +0200 Subject: [PATCH] ennvar from secret --- .drone.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.drone.yml b/.drone.yml index d068a62..e9bc232 100644 --- a/.drone.yml +++ b/.drone.yml @@ -8,6 +8,11 @@ steps: volumes: - name: docker_sock path: /var/run/docker.sock + environment: + DOCKER_USERNAME: + from_secret: DOCKER_USERNAME + DOCKER_PASSWORD: + from_secret: DOCKER_PASSWORD commands: - echo "$DOCKER_PASSWORD" | docker login --username "$DOCKER_USERNAME" --password-stdin registry.kmlabz.com - docker build -t registry.kmlabz.com/$DRONE_REPO .