From 591c24bab746628cc11e2891ee9c1cf24dc80438 Mon Sep 17 00:00:00 2001 From: "Stanislav N. aka pztrn" Date: Sun, 26 Jun 2022 22:08:23 +0500 Subject: [PATCH] Update Drone configuration. --- .drone.yml | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 731ba4e..5ca43e4 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,7 +1,7 @@ --- kind: pipeline type: docker -name: build +name: lint and test steps: - name: lint @@ -18,10 +18,27 @@ steps: commands: - go test ./... - - name: docker +--- +kind: pipeline +type: docker +name: build docker images + +steps: + - name: build master image image: plugins/docker when: branch: ["master"] + settings: + registry: code.pztrn.name + username: drone + password: + from_secret: drone_secret + repo: code.pztrn.name/pztrn/fastpastebin + auto_tag: true + + - name: build tagged image + image: plugins/docker + when: event: ["tag"] settings: registry: code.pztrn.name