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"