Add target path configuration to airshipctl config
As part of set-manifest, currently the default directory is getting added to targetPath field in airshipctl config. This commit adds option for user to set the target path via environment variable. Signed-off-by: Sreejith Punnapuzha <Sreejith.Punnapuzha@outlook.com> Change-Id: Ie88e12059663fca75572d081630746233dbd365c
This commit is contained in:
parent
d74a908255
commit
aaeedd1fac
@ -19,6 +19,7 @@ set -xe
|
||||
|
||||
export AIRSHIP_SITE_NAME=${AIRSHIP_SITE_NAME:-"test-site"}
|
||||
export AIRSHIP_CONFIG_METADATA_PATH=${AIRSHIP_CONFIG_METADATA_PATH:-"treasuremap/manifests/site/$AIRSHIP_SITE_NAME/metadata.yaml"}
|
||||
export AIRSHIP_CONFIG_MANIFEST_DIRECTORY=${AIRSHIP_CONFIG_MANIFEST_DIRECTORY:-"/tmp/treasuremap"}
|
||||
|
||||
# Primary repo options
|
||||
export AIRSHIP_CONFIG_PHASE_REPO_URL=${AIRSHIP_CONFIG_PHASE_REPO_URL:-"${TREASUREMAP_PROJECT}"}
|
||||
@ -36,12 +37,14 @@ export AIRSHIPCTL_REF=${AIRSHIPCTL_REF:-"$(git rev-parse HEAD)"}
|
||||
airshipctl config set-manifest treasuremap_ci \
|
||||
--repo airshipctl \
|
||||
--url "${AIRSHIPCTL_REPO_URL}" \
|
||||
--commithash "${AIRSHIPCTL_REF}"
|
||||
--commithash "${AIRSHIPCTL_REF}" \
|
||||
--target-path "${AIRSHIP_CONFIG_MANIFEST_DIRECTORY}"
|
||||
|
||||
airshipctl config set-manifest treasuremap_ci \
|
||||
--repo primary \
|
||||
--url "${AIRSHIP_CONFIG_PHASE_REPO_URL}" \
|
||||
--commithash "${TREASUREMAP_REF}"
|
||||
--commithash "${TREASUREMAP_REF}" \
|
||||
--target-path "${AIRSHIP_CONFIG_MANIFEST_DIRECTORY}"
|
||||
|
||||
airshipctl config set-context ephemeral-cluster --manifest treasuremap_ci
|
||||
airshipctl config set-context target-cluster --manifest treasuremap_ci
|
||||
|
Loading…
x
Reference in New Issue
Block a user