From 41e52003e04eb9ae12723dea12e511f6f12e4c26 Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Sun, 7 Aug 2022 20:56:42 +0300 Subject: [PATCH] Adding Docker image build to Drone CI configuration. --- .drone.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.drone.yml b/.drone.yml index a7e9afc..add7dd2 100644 --- a/.drone.yml +++ b/.drone.yml @@ -30,3 +30,22 @@ steps: - pull_request branch: exclude: master + - name: docker-build + # https://github.com/drone/drone-plugin-index/blob/main/plugins/docker/original.md + image: plugins/docker + when: + branch: + - master + event: + - push + settings: + username: + from_secret: docker_username + password: + from_secret: docker_token + repo: + from_secret: docker_repo + tags: + - latest + - ${DRONE_COMMIT_SHA:0:10} + - ${DRONE_TAG}