Add CI files

This commit is contained in:
Elara 2023-06-09 11:53:20 -07:00
parent fed9e6527b
commit e27ef16f0d
3 changed files with 57 additions and 1 deletions

3
.gitignore vendored
View File

@ -1,2 +1,3 @@
/lure-updater.toml /lure-updater.toml
/lure-updater /lure-updater
/dist/

47
.goreleaser.yaml Normal file
View 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
View 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