docker building with go-releaser & kos
This commit is contained in:
parent
9214eba626
commit
881f02a90f
2 changed files with 20 additions and 1 deletions
|
@ -31,6 +31,8 @@ jobs:
|
|||
env:
|
||||
GITHUB_TOKEN: ""
|
||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||
KO_DOCKER_REPO: git.hsn.dev/${{ github.repository_owner }}/cert-manager-webhook-dnsimple
|
||||
|
||||
run: |
|
||||
echo ${{ github.workspace }}
|
||||
goreleaser release
|
|
@ -1,6 +1,23 @@
|
|||
---
|
||||
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
|
||||
version: 2
|
||||
|
||||
gitea_urls:
|
||||
api: https://git.hsn.dev/api/v1
|
||||
download: https://git.hsn.dev
|
||||
skip_tls_verify: false
|
||||
kos:
|
||||
- id: cert-manager-webhook-dnsimple
|
||||
platforms:
|
||||
- linux/amd64
|
||||
- linux/arm64
|
||||
tags:
|
||||
- latest
|
||||
- "{{.Tag}}"
|
||||
bare: true
|
||||
flags:
|
||||
- -trimpath
|
||||
ldflags:
|
||||
- -s -w
|
||||
- -extldflags "-static"
|
||||
- -X main.Version={{.Tag}}
|
||||
|
|
Loading…
Reference in a new issue