Merge pull request 'Push image on tag' (#30) from feature/ci-push into master
Reviewed-on: https://gitea.benny.dog/torjus/ezshare/pulls/30
This commit is contained in:
commit
7755ca5a1a
@ -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