fix: stackit CLI setup
This commit is contained in:
parent
638004c7ee
commit
8346b792ca
1 changed files with 8 additions and 0 deletions
|
|
@ -101,8 +101,16 @@ runs:
|
|||
exit 1
|
||||
fi
|
||||
|
||||
echo "::group::Authenticating with service account and triggering operation"
|
||||
|
||||
STACKIT_ACCESS_TOKEN="$(stackit auth activate-service-account --only-print-access-token)"
|
||||
export STACKIT_ACCESS_TOKEN
|
||||
|
||||
stackit config set --project-id "$INPUT_PROJECT_ID"
|
||||
stackit curl --fail -X POST "https://ske.api.stackit.cloud/v2/projects/$INPUT_PROJECT_ID/regions/$INPUT_REGION/clusters/$INPUT_CLUSTER_NAME/$ENDPOINT"
|
||||
|
||||
echo "::endgroup::"
|
||||
|
||||
if [ "$WAIT" != "true" ]; then
|
||||
echo "Operation triggered. No wait requested, exiting."
|
||||
exit 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue