From e4eec5ec858d8d0507dd69e98a4a950dd3d559c1 Mon Sep 17 00:00:00 2001 From: = Date: Wed, 5 Jan 2022 01:08:20 +0100 Subject: [PATCH] Push image on tag --- .woodpecker.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.woodpecker.yml b/.woodpecker.yml index ac29c76..5101f83 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -8,6 +8,25 @@ pipeline: branch: master event: [push, pull_request, tag, deployment] + tag: + image: alpine:latest + commands: + - cat ezshare/version.go |grep Vers|cut -d "=" -f2 | tr -d " v\""|xargs echo "latest,"|tr -d " " > .tags + - cat .tags + when: + status: [success] + + publish: + image: plugins/docker + settings: + repo: registry.t-juice.club/ezshare + username: woodpecker + password: + from_secret: registrypassword + when: + branch: master + event: [tag] + matrix: GO_VERSION: - "1.17"