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"