mirror of
https://github.com/vmware-tanzu/pinniped.git
synced 2026-01-08 23:23:39 +00:00
add hack script to rebuild all codegen images
This commit is contained in:
19
hack/rebuild-codegen-images.sh
Executable file
19
hack/rebuild-codegen-images.sh
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Copyright 2024 the Pinniped contributors. All Rights Reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
|
||||
# Define some env vars
|
||||
source "$script_dir/fly-helpers.sh"
|
||||
|
||||
# Setup and login if needed
|
||||
"$ROOT_DIR"/hack/setup-fly.sh
|
||||
|
||||
# Start all the build-k8s-code-generator-* jobs in the dockerfile-builders pipeline.
|
||||
for j in $($FLY_CLI --target "$CONCOURSE_TARGET" jobs --pipeline dockerfile-builders --json | jq -r '.[].name' | grep build-k8s-code-generator-); do
|
||||
$FLY_CLI --target "$CONCOURSE_TARGET" trigger-job --job "dockerfile-builders/$j"
|
||||
done
|
||||
Reference in New Issue
Block a user