mod workflow

This commit is contained in:
2024-04-17 21:27:40 +08:00
parent 82edf3d068
commit d0bb03cd1e
9 changed files with 42 additions and 171 deletions

View File

@ -0,0 +1,10 @@
steps:
- name: build
image: woodpeckerci/plugin-docker-buildx
settings:
platforms: linux/amd64,linux/arm64/v8,linux/arm/v7,linux/386,linux/ppc64le,linux/s390x
repo: nite07/sub2sing-box
tag: nightly
username: nite07
password:
from_secret: docker_password

13
.woodspecker/docker.yml Normal file
View File

@ -0,0 +1,13 @@
when:
event: tag
steps:
- name: build
image: woodpeckerci/plugin-docker-buildx
settings:
platforms: linux/amd64,linux/arm64/v8,linux/arm/v7,linux/386,linux/ppc64le,linux/s390x
repo: nite07/sub2sing-box
tag: ${CI_COMMIT_TAG}
username: nite07
password:
from_secret: docker_password

18
.woodspecker/release.yml Normal file
View File

@ -0,0 +1,18 @@
when:
event: tag
steps:
- name: build
image: goreleaser/goreleaser:latest
commands:
- goreleaser release --clean --skip publish
- mkdir release
- mv dist/*.tar.gz release/
- mv dist/*.zip release/
- name: release
image: woodpeckerci/plugin-gitea-release
settings:
files: release/*
api_key:
from_secret: gitea_key
base-url: https://git.nite07.com