2022-02-14 14:35:16 +00:00
|
|
|
project_name: zitadel
|
2022-05-02 13:15:11 +00:00
|
|
|
|
2022-02-14 14:35:16 +00:00
|
|
|
release:
|
|
|
|
github:
|
2022-04-27 09:08:54 +00:00
|
|
|
owner: zitadel
|
2022-02-14 14:35:16 +00:00
|
|
|
name: zitadel
|
2022-05-17 14:06:56 +00:00
|
|
|
draft: false
|
2022-02-14 14:35:16 +00:00
|
|
|
prerelease: auto
|
2022-05-02 13:15:11 +00:00
|
|
|
|
2022-02-14 14:35:16 +00:00
|
|
|
before:
|
|
|
|
hooks:
|
2022-07-25 11:54:05 +00:00
|
|
|
# this file would invalidate go source caches
|
|
|
|
- sh -c "rm openapi/statik/statik.go || true"
|
2022-02-14 14:35:16 +00: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
|
2022-02-14 16:22:30 +00:00
|
|
|
- sh -c "cp -r .artifacts/grpc/go-client/* ."
|
2022-02-14 14:35:16 +00:00
|
|
|
- docker build -f build/console/Dockerfile . -t zitadel-npm-base --target npm-copy -o .artifacts/grpc/js-client
|
|
|
|
- docker build -f build/console/Dockerfile . -t zitadel-npm-base --target angular-export -o .artifacts/console
|
2022-04-04 07:51:35 +00:00
|
|
|
- sh -c "cp -r .artifacts/console/* internal/api/ui/console/static/"
|
2022-05-02 13:15:11 +00:00
|
|
|
|
2022-02-14 14:35:16 +00:00
|
|
|
builds:
|
|
|
|
- env:
|
|
|
|
- CGO_ENABLED=0
|
|
|
|
goos:
|
|
|
|
- linux
|
|
|
|
- windows
|
|
|
|
- darwin
|
|
|
|
goarch:
|
|
|
|
- amd64
|
|
|
|
- arm64
|
2022-05-13 12:06:44 +00: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-05-02 19:02:04 +00:00
|
|
|
|
2022-02-14 14:35:16 +00:00
|
|
|
dist: .artifacts/goreleaser
|
2022-05-02 13:15:11 +00:00
|
|
|
|
2022-02-14 14:35:16 +00:00
|
|
|
dockers:
|
|
|
|
- image_templates:
|
2022-04-26 23:01:45 +00:00
|
|
|
- ghcr.io/zitadel/zitadel:{{ .Tag }}-amd64
|
2022-04-12 14:44:49 +00:00
|
|
|
- europe-docker.pkg.dev/zitadel-common/zitadel-repo/zitadel:{{ .Tag }}-amd64
|
2022-02-14 14:35:16 +00:00
|
|
|
use: buildx
|
|
|
|
dockerfile: build/Dockerfile
|
|
|
|
build_flag_templates:
|
|
|
|
- "--platform=linux/amd64"
|
|
|
|
- image_templates:
|
2022-04-26 23:01:45 +00:00
|
|
|
- ghcr.io/zitadel/zitadel:{{ .Tag }}-arm64
|
|
|
|
- ghcr.io/zitadel/zitadel:{{ .ShortCommit }}-arm64
|
2022-02-14 14:35:16 +00:00
|
|
|
use: buildx
|
|
|
|
dockerfile: build/Dockerfile
|
|
|
|
build_flag_templates:
|
|
|
|
- "--platform=linux/arm64"
|
2022-05-02 13:15:11 +00:00
|
|
|
|
2022-08-02 07:08:43 +00:00
|
|
|
docker_manifests:
|
2022-08-03 10:55:54 +00:00
|
|
|
- id: zitadel-latest
|
2022-08-02 07:08:43 +00:00
|
|
|
name_template: ghcr.io/zitadel/zitadel:latest
|
|
|
|
image_templates:
|
|
|
|
- ghcr.io/zitadel/zitadel:{{ .Tag }}-amd64
|
|
|
|
- ghcr.io/zitadel/zitadel:{{ .Tag }}-arm64
|
2022-08-03 10:55:54 +00:00
|
|
|
- id: zitadel-Tag
|
2022-08-02 07:08:43 +00:00
|
|
|
name_template: ghcr.io/zitadel/zitadel:{{ .Tag }}
|
|
|
|
image_templates:
|
|
|
|
- ghcr.io/zitadel/zitadel:{{ .Tag }}-amd64
|
|
|
|
- ghcr.io/zitadel/zitadel:{{ .Tag }}-arm64
|
|
|
|
|
2022-02-14 14:35:16 +00:00
|
|
|
archives:
|
2022-05-20 15:50:25 +00:00
|
|
|
- name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
|
|
|
|
replacements:
|
|
|
|
darwin: Darwin
|
|
|
|
linux: Linux
|
|
|
|
windows: Windows
|
|
|
|
386: i386
|
|
|
|
amd64: x86_64
|
|
|
|
format_overrides:
|
|
|
|
- goos: windows
|
|
|
|
format: zip
|
|
|
|
files:
|
|
|
|
- README.md
|
|
|
|
- LICENSE
|
2022-05-02 13:15:11 +00:00
|
|
|
|
2022-02-14 14:35:16 +00:00
|
|
|
gomod:
|
2022-04-12 14:44:49 +00:00
|
|
|
proxy: false
|
2022-05-02 13:15:11 +00:00
|
|
|
|
2022-02-14 14:35:16 +00:00
|
|
|
checksum:
|
|
|
|
name_template: 'checksums.txt'
|
2022-05-02 14:32:21 +00:00
|
|
|
|
2022-02-14 14:35:16 +00:00
|
|
|
changelog:
|
|
|
|
sort: asc
|
|
|
|
filters:
|
|
|
|
exclude:
|
|
|
|
- '^docs:'
|
|
|
|
- '^test:'
|
2022-05-02 13:15:11 +00:00
|
|
|
|
|
|
|
brews:
|
|
|
|
- tap:
|
|
|
|
owner: zitadel
|
2022-05-03 14:23:12 +00:00
|
|
|
name: homebrew-tap
|
2022-05-02 20:04:33 +00:00
|
|
|
token: "{{ .Env.GORELEASER_TOKEN_TAP }}"
|
2022-05-02 13:15:11 +00:00
|
|
|
folder: Formula
|
|
|
|
goarm: "7"
|
2022-05-20 14:32:06 +00:00
|
|
|
homepage: https://zitadel.com
|
2022-05-02 13:15:11 +00:00
|
|
|
description: Open source identity solution built for the container and cloud era
|
|
|
|
license: Apache 2.0
|
|
|
|
test: |
|
|
|
|
system "#{bin}/zitadel -v"
|
|
|
|
dependencies:
|
|
|
|
- name: go
|
|
|
|
type: optional
|
|
|
|
- name: git
|
|
|
|
install: |-
|
|
|
|
bin.install "zitadel"
|
|
|
|
|
|
|
|
announce:
|
|
|
|
discord:
|
2022-05-17 14:06:56 +00:00
|
|
|
enabled: true
|
2022-05-03 14:23:12 +00:00
|
|
|
message_template: 'ZITADEL {{ .Tag }} is ready! Check the notes: https://github.com/zitadel/zitadel/releases/tag/{{ .Tag }}'
|