re added gitea releases

This commit is contained in:
Tobias Trabelsi 2022-06-13 21:12:54 +02:00
parent cc6f0d460a
commit f8ea8a9276
No known key found for this signature in database
GPG key ID: FF0C2839718CAF2E
2 changed files with 13 additions and 0 deletions

View file

@ -41,7 +41,14 @@ steps:
environment:
GITEA_TOKEN:
from_secret: gitea_token
GPG_PRIVATE_KEY:
from_secret: GPG_PRIVATE_KEY
GPG_FINGERPRINT:
from_secret: GPG_FINGERPRINT
commands:
- apk add gpg-agent
- gpg-agent --daemon --default-cache-ttl 7200
- echo $GPG_PRIVATE_KEY | gpg --import --batch --no-tty
- goreleaser release
resources:
limits:

View file

@ -4,6 +4,9 @@ before:
hooks:
# this is just an example and not a requirement for provider building/publishing
- go mod tidy
gitea_urls:
api: https://git.uploadfilter24.eu/api/v1/
download: https://git.uploadfilter24.eu
builds:
- env:
# goreleaser does not work with CGO, it could also complicate
@ -51,6 +54,9 @@ signs:
- "--detach-sign"
- "${artifact}"
release:
gitea:
owner: lerentis
name: terraform-provider-gitea
extra_files:
- glob: 'terraform-registry-manifest.json'
name_template: '{{ .ProjectName }}_{{ .Version }}_manifest.json'