mirror of
https://github.com/temporalio/temporal.git
synced 2026-08-30 18:41:49 -07:00
## What changed? * updates goreleaser to v2 * add GHA for build admin-tools and server images within this repo. `docker-builds` will only be used for building pre 1.30 images * added GHA to promote docker builds from temporaliotest to temproalio docker image repos * trivy security scanning gates for image promotion (pulled rom docker-builds repo). The gate can be overridden ## Why? * we decided to move away from building images in `docker-builds`. The complexity is not needed * updates goreleaser to v2 because the v1 definitions might be no longer supported at some point and this is a good time to do it * I used go scripts for the more complex flows instead of js or bash so we don't introduce another language contributors need to be familiar with. IMO the js or bash I did use it simple enough to understand. ## How did you test it? It passes in CI. ## Potential risks * these build pipelines are only compatible with the new docker images. * merging this PR may break our nightly tests. Will double check before merging * flows that are not triggered by opening a PR are untested and therefore not completely validated
97 lines
1.6 KiB
YAML
97 lines
1.6 KiB
YAML
# GoReleaser v2 configuration
|
|
version: 2
|
|
|
|
before:
|
|
hooks:
|
|
- go mod download
|
|
|
|
snapshot:
|
|
version_template: "{{ .Version }}-SNAPSHOT-{{ .ShortCommit }}"
|
|
|
|
archives:
|
|
- id: default
|
|
ids:
|
|
- temporal-server
|
|
- temporal-cassandra-tool
|
|
- temporal-sql-tool
|
|
- temporal-elasticsearch-tool
|
|
- tdbg
|
|
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
|
|
format_overrides:
|
|
- goos: windows
|
|
formats: [zip]
|
|
files:
|
|
- ./config/*
|
|
|
|
builds:
|
|
- id: temporal-server
|
|
dir: cmd/server
|
|
binary: temporal-server
|
|
env:
|
|
- CGO_ENABLED=0
|
|
goos:
|
|
- linux
|
|
- darwin
|
|
- windows
|
|
goarch:
|
|
- amd64
|
|
- arm64
|
|
- id: temporal-cassandra-tool
|
|
dir: cmd/tools/cassandra
|
|
binary: temporal-cassandra-tool
|
|
env:
|
|
- CGO_ENABLED=0
|
|
goos:
|
|
- linux
|
|
- darwin
|
|
- windows
|
|
goarch:
|
|
- amd64
|
|
- arm64
|
|
- id: temporal-sql-tool
|
|
dir: cmd/tools/sql
|
|
binary: temporal-sql-tool
|
|
env:
|
|
- CGO_ENABLED=0
|
|
goos:
|
|
- linux
|
|
- darwin
|
|
- windows
|
|
goarch:
|
|
- amd64
|
|
- arm64
|
|
- id: temporal-elasticsearch-tool
|
|
dir: cmd/tools/elasticsearch
|
|
binary: temporal-elasticsearch-tool
|
|
env:
|
|
- CGO_ENABLED=0
|
|
goos:
|
|
- linux
|
|
- darwin
|
|
- windows
|
|
goarch:
|
|
- amd64
|
|
- arm64
|
|
- id: tdbg
|
|
dir: cmd/tools/tdbg
|
|
binary: tdbg
|
|
env:
|
|
- CGO_ENABLED=0
|
|
goos:
|
|
- linux
|
|
- darwin
|
|
- windows
|
|
goarch:
|
|
- amd64
|
|
- arm64
|
|
|
|
checksum:
|
|
name_template: "checksums.txt"
|
|
algorithm: sha256
|
|
|
|
changelog:
|
|
disable: true
|
|
|
|
announce:
|
|
skip: true
|