mirror of
https://github.com/temporalio/temporal.git
synced 2026-08-31 02:51:51 -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
17 lines
597 B
Bash
17 lines
597 B
Bash
#!/bin/sh
|
|
# pipefail is included in alpine
|
|
# shellcheck disable=SC3040
|
|
set -eu -o pipefail
|
|
|
|
# Resolve hostname to IP address for binding if not already set (supports both IPv4 and IPv6)
|
|
: "${BIND_ON_IP:=$(getent hosts "$(hostname)" | awk '{print $1;}')}"
|
|
export BIND_ON_IP
|
|
|
|
# If binding to wildcard address (0.0.0.0 or ::0), set broadcast address if not already set
|
|
if [ "${BIND_ON_IP}" = "0.0.0.0" ] || [ "${BIND_ON_IP}" = "::0" ]; then
|
|
: "${TEMPORAL_BROADCAST_ADDRESS:=$(getent hosts "$(hostname)" | awk '{print $1;}')}"
|
|
export TEMPORAL_BROADCAST_ADDRESS
|
|
fi
|
|
|
|
exec temporal-server start
|