From 2dff7ebeaac9de95f3a531321bded0d19c398421 Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Sun, 14 Aug 2022 00:04:19 +0300 Subject: [PATCH] Docker image CI build (#43) Reviewed-on: https://git.skobk.in/Miroslavsckaya/tg_rss_bot/pulls/43 --- .drone.yml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index a7e9afc..5cb343b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,7 +3,7 @@ kind: pipeline type: docker -name: app-check +name: build steps: - name: build-deps @@ -30,3 +30,23 @@ steps: - pull_request branch: exclude: master + - name: build-docker + # 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 + # https://docs.drone.io/pipeline/environment/reference/ + - ${DRONE_COMMIT_SHA:0:10} + - ${DRONE_TAG}