supabase-operator/.goreleaser.yaml
Peter Kurfer 6e9ebb5e61
Some checks failed
E2E Tests / Run on Ubuntu (push) Has been cancelled
Tests / Run on Ubuntu (push) Has been cancelled
Docs / deploy (push) Has been cancelled
Lint / Run on Ubuntu (push) Has been cancelled
release / release (push) Failing after 5m20s
fix(ci): omit import path in container images
2025-01-22 10:12:56 +01:00

62 lines
1.3 KiB
YAML

# 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
base_import_paths: false
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).