mirror of
https://github.com/nitezs/sub2clash.git
synced 2024-12-23 22:14:41 -05:00
22 lines
476 B
YAML
22 lines
476 B
YAML
when:
|
|
- event: tag
|
|
ref: refs/tags/v*
|
|
|
|
steps:
|
|
- name: prepare-tags
|
|
image: bash
|
|
commands:
|
|
- |
|
|
echo "${CI_COMMIT_TAG##v}" > .tags
|
|
if ! echo "${CI_COMMIT_TAG}" | grep -Eq "beta|alpha"; then
|
|
echo "latest" > .tags
|
|
fi
|
|
- name: build
|
|
image: woodpeckerci/plugin-docker-buildx
|
|
settings:
|
|
platforms: linux/amd64
|
|
repo: nite07/sub2clash
|
|
username: nite07
|
|
password:
|
|
from_secret: docker_password
|