2022-02-14 15:35:16 +01:00
|
|
|
project_name: zitadel
|
2022-05-02 15:15:11 +02:00
|
|
|
|
2022-02-14 15:35:16 +01:00
|
|
|
release:
|
|
|
|
github:
|
2022-04-27 11:08:54 +02:00
|
|
|
owner: zitadel
|
2022-02-14 15:35:16 +01:00
|
|
|
name: zitadel
|
2022-05-17 16:06:56 +02:00
|
|
|
draft: false
|
2022-08-23 17:03:23 +02:00
|
|
|
# If set to auto, will mark the release as not ready for production
|
|
|
|
# in case there is an indicator for this in the tag e.g. v1.0.0-rc1
|
|
|
|
# If set to true, will mark the release as not ready for production.
|
|
|
|
# Default is false.
|
2022-02-14 15:35:16 +01:00
|
|
|
prerelease: auto
|
2022-05-02 15:15:11 +02:00
|
|
|
|
2022-02-14 15:35:16 +01:00
|
|
|
before:
|
|
|
|
hooks:
|
2022-07-25 13:54:05 +02:00
|
|
|
# this file would invalidate go source caches
|
|
|
|
- sh -c "rm openapi/statik/statik.go || true"
|
2022-02-14 15:35:16 +01:00
|
|
|
- docker build -f build/grpc/Dockerfile -t zitadel-base:local .
|
|
|
|
- docker build -f build/zitadel/Dockerfile . -t zitadel-go-test --target go-codecov -o .artifacts/codecov
|
|
|
|
- docker build -f build/zitadel/Dockerfile . -t zitadel-go-base --target go-copy -o .artifacts/grpc/go-client
|
2023-05-24 23:19:48 +02:00
|
|
|
- sh -c "find pkg/grpc -name '*.pb*.go' -delete"
|
2022-02-14 17:22:30 +01:00
|
|
|
- sh -c "cp -r .artifacts/grpc/go-client/* ."
|
2022-08-05 20:00:46 +02:00
|
|
|
- docker build -f build/console/Dockerfile . -t zitadel-npm-console --target angular-export -o .artifacts/console
|
2022-04-04 09:51:35 +02:00
|
|
|
- sh -c "cp -r .artifacts/console/* internal/api/ui/console/static/"
|
2022-05-02 15:15:11 +02:00
|
|
|
|
2022-02-14 15:35:16 +01:00
|
|
|
builds:
|
2022-08-31 09:52:43 +02:00
|
|
|
- env:
|
2022-02-14 15:35:16 +01:00
|
|
|
- CGO_ENABLED=0
|
|
|
|
goos:
|
|
|
|
- linux
|
|
|
|
- windows
|
|
|
|
- darwin
|
|
|
|
goarch:
|
|
|
|
- amd64
|
|
|
|
- arm64
|
2023-02-17 15:09:11 +01:00
|
|
|
ldflags: -s -w -X github.com/zitadel/zitadel/cmd/build.version={{.Version}} -X github.com/zitadel/zitadel/cmd/build.commit={{.Commit}} -X github.com/zitadel/zitadel/cmd/build.date={{.Date}}
|
|
|
|
|
2022-02-14 15:35:16 +01:00
|
|
|
dist: .artifacts/goreleaser
|
2022-05-02 15:15:11 +02:00
|
|
|
|
2022-02-14 15:35:16 +01:00
|
|
|
dockers:
|
2023-02-17 15:09:11 +01:00
|
|
|
- image_templates:
|
|
|
|
- ghcr.io/zitadel/zitadel:{{ .Tag }}-amd64
|
|
|
|
- europe-docker.pkg.dev/zitadel-common/zitadel-repo/zitadel:{{ .Tag }}-amd64
|
|
|
|
goarch: amd64
|
|
|
|
use: buildx
|
|
|
|
dockerfile: build/Dockerfile
|
|
|
|
build_flag_templates:
|
|
|
|
- "--platform=linux/amd64"
|
|
|
|
- image_templates:
|
|
|
|
- ghcr.io/zitadel/zitadel:{{ .Tag }}-arm64
|
|
|
|
- ghcr.io/zitadel/zitadel:{{ .ShortCommit }}-arm64
|
|
|
|
goarch: arm64
|
|
|
|
use: buildx
|
|
|
|
dockerfile: build/Dockerfile
|
|
|
|
build_flag_templates:
|
|
|
|
- "--platform=linux/arm64"
|
2022-05-02 15:15:11 +02:00
|
|
|
|
2022-08-02 09:08:43 +02:00
|
|
|
docker_manifests:
|
2023-02-17 15:09:11 +01:00
|
|
|
- id: zitadel-latest
|
|
|
|
name_template: ghcr.io/zitadel/zitadel:latest
|
|
|
|
image_templates:
|
|
|
|
- ghcr.io/zitadel/zitadel:{{ .Tag }}-amd64
|
|
|
|
- ghcr.io/zitadel/zitadel:{{ .Tag }}-arm64
|
|
|
|
# Skips can and shall be set for individual manifests same as in dockers
|
|
|
|
skip_push: auto
|
|
|
|
- id: zitadel-Tag
|
|
|
|
name_template: ghcr.io/zitadel/zitadel:{{ .Tag }}
|
|
|
|
image_templates:
|
|
|
|
- ghcr.io/zitadel/zitadel:{{ .Tag }}-amd64
|
|
|
|
- ghcr.io/zitadel/zitadel:{{ .Tag }}-arm64
|
2022-08-04 16:08:24 +02:00
|
|
|
|
2022-02-14 15:35:16 +01:00
|
|
|
archives:
|
2023-02-17 15:09:11 +01:00
|
|
|
- name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
|
2022-05-20 17:50:25 +02:00
|
|
|
replacements:
|
|
|
|
darwin: Darwin
|
|
|
|
linux: Linux
|
|
|
|
windows: Windows
|
|
|
|
386: i386
|
|
|
|
amd64: x86_64
|
|
|
|
format_overrides:
|
2023-02-17 15:09:11 +01:00
|
|
|
- goos: windows
|
|
|
|
format: zip
|
2022-05-20 17:50:25 +02:00
|
|
|
files:
|
|
|
|
- README.md
|
|
|
|
- LICENSE
|
2022-05-02 15:15:11 +02:00
|
|
|
|
2022-02-14 15:35:16 +01:00
|
|
|
gomod:
|
2022-04-12 16:44:49 +02:00
|
|
|
proxy: false
|
2022-05-02 15:15:11 +02:00
|
|
|
|
2022-02-14 15:35:16 +01:00
|
|
|
checksum:
|
2023-02-17 15:09:11 +01:00
|
|
|
name_template: "checksums.txt"
|
2022-05-02 16:32:21 +02:00
|
|
|
|
2022-02-14 15:35:16 +01:00
|
|
|
changelog:
|
|
|
|
sort: asc
|
|
|
|
filters:
|
|
|
|
exclude:
|
2023-02-17 15:09:11 +01:00
|
|
|
- "^docs:"
|
|
|
|
- "^test:"
|
2022-05-02 15:15:11 +02:00
|
|
|
|
|
|
|
brews:
|
|
|
|
- tap:
|
|
|
|
owner: zitadel
|
2022-05-03 16:23:12 +02:00
|
|
|
name: homebrew-tap
|
2022-05-02 22:04:33 +02:00
|
|
|
token: "{{ .Env.GORELEASER_TOKEN_TAP }}"
|
2022-05-02 15:15:11 +02:00
|
|
|
folder: Formula
|
|
|
|
goarm: "7"
|
2023-02-17 15:09:11 +01:00
|
|
|
homepage: https://zitadel.com
|
2022-05-02 15:15:11 +02:00
|
|
|
description: Open source identity solution built for the container and cloud era
|
|
|
|
license: Apache 2.0
|
|
|
|
test: |
|
|
|
|
system "#{bin}/zitadel -v"
|
|
|
|
dependencies:
|
2023-02-17 15:09:11 +01:00
|
|
|
- name: go
|
|
|
|
type: optional
|
|
|
|
- name: git
|
2022-05-02 15:15:11 +02:00
|
|
|
install: |-
|
|
|
|
bin.install "zitadel"
|
2022-08-23 17:03:23 +02:00
|
|
|
# If set to auto, the release will not be uploaded to the homebrew tap
|
|
|
|
# in case there is an indicator for prerelease in the tag e.g. v1.0.0-rc1
|
|
|
|
# Default is false.
|
|
|
|
skip_upload: auto
|
2022-05-02 15:15:11 +02:00
|
|
|
|
|
|
|
announce:
|
|
|
|
discord:
|
2022-05-17 16:06:56 +02:00
|
|
|
enabled: true
|
2023-02-17 15:09:11 +01:00
|
|
|
message_template: "ZITADEL {{ .Tag }} is ready! Check the notes: https://github.com/zitadel/zitadel/releases/tag/{{ .Tag }}"
|