ezshare/.woodpecker/push.yml

26 lines
523 B
YAML
Raw Normal View History

2022-01-03 18:41:01 +00:00
pipeline:
2022-01-05 00:08:20 +00:00
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]
2022-01-05 00:40:59 +00:00
branch: refs/tags/*
tag: v*
2022-01-05 00:08:20 +00:00
publish:
image: plugins/docker
settings:
repo: registry.t-juice.club/ezshare
username: woodpecker
password:
2022-01-05 00:40:59 +00:00
from_secret: registrypass
2022-01-05 00:08:20 +00:00
when:
2022-01-05 00:40:59 +00:00
branch: refs/tags/*
2022-01-05 00:23:13 +00:00
tag: v*
2022-01-05 00:08:20 +00:00
2022-01-05 00:40:59 +00:00
depends_on:
- "test"
run_on: [success]