2025-01-20 18:03:42 +01:00
|
|
|
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
|
|
|
|
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
|
|
|
|
|
|
|
|
version: 2
|
|
|
|
|
|
|
|
before:
|
|
|
|
hooks:
|
|
|
|
- go mod tidy
|
|
|
|
- go run mage.go GenerateAll
|
|
|
|
- mkdir -p out
|
|
|
|
- sh -c "cd config/release/default && kustomize edit set image supabase-operator=code.icb4dc0.de/prskr/supabase-operator:{{.Version}}"
|
|
|
|
- sh -c "kustomize build config/release/default > out/operator_manifest.yaml"
|
|
|
|
|
|
|
|
builds:
|
|
|
|
- id: operator
|
|
|
|
main: ./cmd/
|
|
|
|
env:
|
|
|
|
- CGO_ENABLED=0
|
|
|
|
goos:
|
|
|
|
- linux
|
|
|
|
goarch:
|
|
|
|
- amd64
|
|
|
|
- arm64
|
|
|
|
|
|
|
|
kos:
|
|
|
|
- id: operator
|
|
|
|
build: operator
|
|
|
|
base_image: gcr.io/distroless/static:nonroot
|
|
|
|
user: "65532:65532"
|
|
|
|
repositories:
|
|
|
|
- code.icb4dc0.de/prskr/supabase-operator
|
|
|
|
platforms:
|
|
|
|
- linux/amd64
|
|
|
|
- linux/arm64
|
|
|
|
tags:
|
|
|
|
- latest
|
|
|
|
- "{{.Version}}"
|
|
|
|
- "{{if not .Prerelease}}stable{{end}}"
|
|
|
|
creation_time: "{{.CommitTimestamp}}"
|
|
|
|
bare: true
|
|
|
|
preserve_import_paths: false
|
2025-01-22 10:12:56 +01:00
|
|
|
base_import_paths: false
|
2025-01-20 18:03:42 +01:00
|
|
|
|
|
|
|
changelog:
|
|
|
|
sort: asc
|
|
|
|
filters:
|
|
|
|
exclude:
|
|
|
|
- "^docs:"
|
|
|
|
- "^test:"
|
|
|
|
|
|
|
|
release:
|
|
|
|
gitea:
|
|
|
|
owner: prskr
|
|
|
|
name: supabase-operator
|
|
|
|
extra_files:
|
|
|
|
- glob: out/operator_manifest.yaml
|
|
|
|
name_template: "supabase-operator-{{.Tag}}.yaml"
|
|
|
|
footer: >-
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
Released by [GoReleaser](https://github.com/goreleaser/goreleaser).
|
2025-01-22 11:25:21 +01:00
|
|
|
|
|
|
|
gitea_urls:
|
|
|
|
api: https://code.icb4dc0.de/api/v1
|
|
|
|
download: https://code.icb4dc0.de
|
|
|
|
skip_tls_verify: false
|