Add CI files
This commit is contained in:
parent
fed9e6527b
commit
e27ef16f0d
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
||||
/lure-updater.toml
|
||||
/lure-updater
|
||||
/dist/
|
47
.goreleaser.yaml
Normal file
47
.goreleaser.yaml
Normal file
@ -0,0 +1,47 @@
|
||||
before:
|
||||
hooks:
|
||||
- go mod tidy
|
||||
builds:
|
||||
- id: lure-updater
|
||||
env:
|
||||
- CGO_ENABLED=0
|
||||
binary: lure-updater
|
||||
goos:
|
||||
- linux
|
||||
goarch:
|
||||
- amd64
|
||||
- 386
|
||||
- arm64
|
||||
- arm
|
||||
archives:
|
||||
- id: archive
|
||||
name_template: >-
|
||||
{{ .ProjectName }}_
|
||||
{{- if eq .Arch "amd64" }}x86_64
|
||||
{{- else if eq .Arch "arm64"}}aarch64
|
||||
{{- else if eq .Arch "386" }}i386
|
||||
{{- else }}{{ .Arch }}{{ end }}
|
||||
files:
|
||||
- lure-updater.example.toml
|
||||
blobs:
|
||||
- provider: s3
|
||||
endpoint: https://api.minio.elara.ws
|
||||
region: default
|
||||
bucket: lure-updater
|
||||
ids:
|
||||
- archive
|
||||
folder: "/"
|
||||
release:
|
||||
gitea:
|
||||
owner: Elara6331
|
||||
name: lure-updater
|
||||
gitea_urls:
|
||||
api: 'https://gitea.elara.ws/api/v1/'
|
||||
download: 'https://gitea.elara.ws'
|
||||
skip_tls_verify: false
|
||||
checksum:
|
||||
name_template: 'checksums.txt'
|
||||
snapshot:
|
||||
name_template: "{{ incpatch .Version }}-next"
|
||||
changelog:
|
||||
sort: asc
|
8
.woodpecker.yml
Normal file
8
.woodpecker.yml
Normal file
@ -0,0 +1,8 @@
|
||||
pipeline:
|
||||
release:
|
||||
image: goreleaser/goreleaser
|
||||
commands:
|
||||
- goreleaser release
|
||||
secrets: [ gitea_token, aws_access_key_id, aws_secret_access_key ]
|
||||
when:
|
||||
event: tag
|
Loading…
Reference in New Issue
Block a user