From 5a68ec1aba572ab5ac6dd2f75087fa340fd94a15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Thu, 23 Jan 2020 13:50:11 +0100 Subject: [PATCH] secrets to envvars --- .drone.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.drone.yml b/.drone.yml index eb98560..bb98dea 100644 --- a/.drone.yml +++ b/.drone.yml @@ -15,6 +15,11 @@ steps: - name: build image: docker:stable-dind + environment: + DOCKER_USERNAME: + from_secret: DOCKER_USERNAME + DOCKER_PASSWORD: + from_secret: DOCKER_PASSWORD commands: - echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin registry.kmlabz.com - docker build -t="registry.kmlabz.com/$DRONE_REPO:$DRONE_BUILD_NUMBER" . && docker push "registry.kmlabz.com/$DRONE_REPO:$DRONE_BUILD_NUMBER"