mirror of
https://github.com/nitezs/sub2clash.git
synced 2024-12-23 10:34:42 -05:00
🔧 Update workflows
This commit is contained in:
parent
b86aa2559a
commit
3d3b4e0bea
@ -8,7 +8,6 @@ builds:
|
||||
- darwin
|
||||
goarch:
|
||||
- amd64
|
||||
- "386"
|
||||
ldflags:
|
||||
- -s -w -X sub2clash/constant.Version={{ .Version }}
|
||||
flags:
|
||||
|
@ -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
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user