1
0
mirror of https://github.com/nitezs/sub2clash.git synced 2024-12-23 11:14:41 -05:00

🔧 Update workflows

This commit is contained in:
Nite07 2024-04-23 17:28:05 +08:00
parent b86aa2559a
commit 3d3b4e0bea
5 changed files with 14 additions and 19 deletions

View File

@ -8,7 +8,6 @@ builds:
- darwin
goarch:
- amd64
- "386"
ldflags:
- -s -w -X sub2clash/constant.Version={{ .Version }}
flags:

View File

@ -1,14 +0,0 @@
when:
- event: cron
cron: docker-nightly
steps:
- name: build
image: woodpeckerci/plugin-docker-buildx
settings:
platforms: linux/amd64
repo: nite07/sub2clash
tag: nightly
username: nite07
password:
from_secret: docker_password

View File

@ -1,13 +1,21 @@
when:
event: tag
- 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
auto_tag: true
username: nite07
password:
from_secret: docker_password

View File

@ -1,5 +1,6 @@
when:
event: tag
- event: tag
ref: refs/tags/v*
steps:
- name: build
@ -14,5 +15,6 @@ steps:
settings:
files: release/*
api_key:
from_secret: gitea_key
from_secret: forgejo_token
base-url: https://git.nite07.com
draft: true