mirror of
https://github.com/vmware-tanzu/pinniped.git
synced 2026-09-19 14:34:27 +00:00
Move CI to a new internal Concourse
This commit is contained in:
+2
-2
@@ -1,11 +1,11 @@
|
||||
# Copyright 2020-2024 the Pinniped contributors. All Rights Reserved.
|
||||
# Copyright 2020-2025 the Pinniped contributors. All Rights Reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
#
|
||||
# Some global fly config.
|
||||
#
|
||||
export FLY_CLI=/usr/local/bin/fly
|
||||
export CONCOURSE_URL=https://ci.pinniped.dev
|
||||
export CONCOURSE_URL=https://ci.pinniped.broadcom.net
|
||||
export CONCOURSE_TEAM=main
|
||||
export CONCOURSE_TARGET=pinniped
|
||||
export ROOT_DIR
|
||||
|
||||
+6
-1
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Copyright 2020-2024 the Pinniped contributors. All Rights Reserved.
|
||||
# Copyright 2020-2025 the Pinniped contributors. All Rights Reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
set -euo pipefail
|
||||
@@ -16,6 +16,11 @@ if [[ ! -f "$FLY_CLI" ]]; then
|
||||
chmod 755 "$FLY_CLI"
|
||||
fi
|
||||
|
||||
if $FLY_CLI targets | grep ^"$CONCOURSE_TARGET" | grep -q 'https://ci\.pinniped\.dev'; then
|
||||
# The user has the old ci.pinniped.dev target. Remove it so we can replace it.
|
||||
$FLY_CLI delete-target --target "$CONCOURSE_TARGET"
|
||||
fi
|
||||
|
||||
if ! $FLY_CLI targets | tr -s ' ' | cut -f1 -d ' ' | grep -q "$CONCOURSE_TARGET"; then
|
||||
# Create the target if needed
|
||||
$FLY_CLI --target "$CONCOURSE_TARGET" login \
|
||||
|
||||
Reference in New Issue
Block a user