mirror of
https://github.com/nitezs/sub2sing-box.git
synced 2024-12-23 15:04:41 -05:00
🔧 Update workflows
This commit is contained in:
parent
0456c8f802
commit
960942a2d3
@ -1,30 +0,0 @@
|
||||
project_name: sub2sing-box
|
||||
builds:
|
||||
- env:
|
||||
- CGO_ENABLED=0
|
||||
goos:
|
||||
- windows
|
||||
- linux
|
||||
- darwin
|
||||
goarch:
|
||||
- amd64
|
||||
- arm64
|
||||
- arm
|
||||
- "386"
|
||||
ldflags:
|
||||
- -s -w -X sub2sing-box/constant.Version={{ .Version }}
|
||||
flags:
|
||||
- -trimpath
|
||||
no_unique_dist_dir: true
|
||||
archives:
|
||||
- format: tar.gz
|
||||
format_overrides:
|
||||
- format: zip
|
||||
goos: windows
|
||||
wrap_in_directory: true
|
||||
files:
|
||||
- LICENSE
|
||||
- README.md
|
||||
- templates
|
||||
release:
|
||||
prerelease: true
|
@ -1,14 +0,0 @@
|
||||
when:
|
||||
- event: cron
|
||||
cron: docker-nightly
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: woodpeckerci/plugin-docker-buildx
|
||||
settings:
|
||||
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||
repo: nite07/sub2sing-box
|
||||
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,linux/arm64,linux/arm/v7
|
||||
platforms: linux/amd64
|
||||
repo: nite07/sub2sing-box
|
||||
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