Push image on tag
This commit is contained in:
parent
1cfa1e4be6
commit
e4eec5ec85
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user