mirror of
https://github.com/nitezs/sub2clash.git
synced 2024-12-23 14:54:42 -05:00
🔧 Update workflows
This commit is contained in:
parent
b86aa2559a
commit
3d3b4e0bea
@ -8,7 +8,6 @@ builds:
|
|||||||
- darwin
|
- darwin
|
||||||
goarch:
|
goarch:
|
||||||
- amd64
|
- amd64
|
||||||
- "386"
|
|
||||||
ldflags:
|
ldflags:
|
||||||
- -s -w -X sub2clash/constant.Version={{ .Version }}
|
- -s -w -X sub2clash/constant.Version={{ .Version }}
|
||||||
flags:
|
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:
|
when:
|
||||||
event: tag
|
- event: tag
|
||||||
|
ref: refs/tags/v*
|
||||||
|
|
||||||
steps:
|
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
|
- name: build
|
||||||
image: woodpeckerci/plugin-docker-buildx
|
image: woodpeckerci/plugin-docker-buildx
|
||||||
settings:
|
settings:
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
repo: nite07/sub2clash
|
repo: nite07/sub2clash
|
||||||
auto_tag: true
|
|
||||||
username: nite07
|
username: nite07
|
||||||
password:
|
password:
|
||||||
from_secret: docker_password
|
from_secret: docker_password
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
when:
|
when:
|
||||||
event: tag
|
- event: tag
|
||||||
|
ref: refs/tags/v*
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
@ -14,5 +15,6 @@ steps:
|
|||||||
settings:
|
settings:
|
||||||
files: release/*
|
files: release/*
|
||||||
api_key:
|
api_key:
|
||||||
from_secret: gitea_key
|
from_secret: forgejo_token
|
||||||
base-url: https://git.nite07.com
|
base-url: https://git.nite07.com
|
||||||
|
draft: true
|
||||||
|
Loading…
Reference in New Issue
Block a user