Push image on tag

This commit is contained in:
Torjus Håkestad 2022-01-05 01:08:20 +01:00
parent 1cfa1e4be6
commit e4eec5ec85

View File

@ -8,6 +8,25 @@ pipeline:
branch: master branch: master
event: [push, pull_request, tag, deployment] 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: matrix:
GO_VERSION: GO_VERSION:
- "1.17" - "1.17"