From 81da771a867d508247a96dc62e9f17899fbe1821 Mon Sep 17 00:00:00 2001 From: Muhammad Faizan Date: Wed, 17 Jan 2024 16:04:15 +0100 Subject: [PATCH] Fix wait-build-job for main branch --- .github/workflows/e2e.yml | 2 +- scripts/gardener/aws/deprovision.sh | 10 +++++----- scripts/gardener/aws/provision.sh | 24 ++++++++++++------------ 3 files changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index b28557e9..1ee334ce 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -50,7 +50,7 @@ jobs: if: github.event_name == 'push' uses: kyma-project/wait-for-commit-status-action@2b3ffe09af8b6f40e1213d5fb7f91a7bd41ffb20 with: - context: ${{ github.ref == 'main' && 'post-eventing-manager-build' || 'release-eventing-manager-build' }} + context: ${{ github.ref_name == 'main' && 'post-eventing-manager-build' || 'release-eventing-manager-build' }} commit_ref: "${{ github.sha }}" timeout: 600000 # 10 minutes in milliseconds # The check interval is kept long otherwise it will exhaust the GitHub rate limit (More info: https://docs.github.com/en/rest/overview/resources-in-the-rest-api?apiVersion=2022-11-28#rate-limiting) diff --git a/scripts/gardener/aws/deprovision.sh b/scripts/gardener/aws/deprovision.sh index cf4ebb36..ac20b9c5 100755 --- a/scripts/gardener/aws/deprovision.sh +++ b/scripts/gardener/aws/deprovision.sh @@ -1,10 +1,10 @@ #!/usr/bin/env bash -# Usage: To run this script, set the following environment variables and run this script. -# CLUSTER_NAME -# GARDENER_PROJECT_NAME -# GARDENER_KUBECONFIG - Path to kubeconfig for Gardener. -# WAIT_FOR_DELETE_COMPLETION - "true" | "false" +# Usage: To run this script, set the required environment variables and run this script. +# CLUSTER_NAME - (required) +# GARDENER_PROJECT_NAME - (required) +# GARDENER_KUBECONFIG - (required, description: Path to kubeconfig for Gardener.) +# WAIT_FOR_DELETE_COMPLETION - (optional, default: "false") # Permissions: In order to run this script you need to use a service account with permissions equivalent to the following GCP roles: # - Compute Admin diff --git a/scripts/gardener/aws/provision.sh b/scripts/gardener/aws/provision.sh index 734c71f0..425f3d0a 100755 --- a/scripts/gardener/aws/provision.sh +++ b/scripts/gardener/aws/provision.sh @@ -1,17 +1,17 @@ #!/usr/bin/env bash -# Usage: To run this script, set the following environment variables and run this script. -# CLUSTER_NAME -# GARDENER_REGION -# GARDENER_ZONES -# GARDENER_PROJECT_NAME -# GARDENER_PROVIDER_SECRET_NAME -# GARDENER_KUBECONFIG - Path to kubeconfig for Gardener. -# MACHINE_TYPE - default: "m5.xlarge" -# SCALER_MIN - default: 1 -# SCALER_MAX - default: 2 -# RETRY_ATTEMPTS - default: 1 -# GARDENER_CLUSTER_VERSION - default as defined in kyma CLI!. +# Usage: To run this script, set the required environment variables and run this script. +# CLUSTER_NAME - (required) +# GARDENER_REGION - (required) +# GARDENER_ZONES - (required) +# GARDENER_PROJECT_NAME - (required) +# GARDENER_PROJECT_NAME - (required) +# GARDENER_KUBECONFIG - (required, description: Path to kubeconfig for Gardener.) +# MACHINE_TYPE - (optional, default: "m5.xlarge") +# SCALER_MIN - (optional, default: 1) +# SCALER_MAX - (optional, default: 2) +# RETRY_ATTEMPTS - (optional, default: 1) +# GARDENER_CLUSTER_VERSION - (optional, default: kyma CLI default value for kube-version.) # Permissions: In order to run this script you need to use a service account with permissions equivalent to the following GCP roles: # - Compute Admin