ezshare/.woodpecker/push.yml
2022-01-05 01:54:21 +01:00

25 lines
497 B
YAML

pipeline:
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]
branch: refs/tags/*
tag: v*
publish:
image: plugins/docker
settings:
repo: registry.t-juice.club/ezshare
username: woodpecker
password:
from_secret: registrypass
when:
tag: v*
depends_on:
- "test"
run_on: [success]