Skip to content

Commit

Permalink
Merge pull request #2183 from Nordix/fix-2181/adil
Browse files Browse the repository at this point in the history
🌱 Set value of CAPM3RELEASE instead of relying on metal3-dev-env
  • Loading branch information
metal3-io-bot authored Dec 20, 2024
2 parents a75e241 + 37baddb commit 22fc609
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions scripts/ci-e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@ FORCE_REPO_UPDATE="${FORCE_REPO_UPDATE:-false}"

export CAPM3RELEASEBRANCH="${CAPM3RELEASEBRANCH:-main}"

# Extract release version from release-branch name
if [[ "${CAPM3RELEASEBRANCH}" == release-* ]]; then
CAPM3_RELEASE_PREFIX="${CAPM3RELEASEBRANCH#release-}"
export CAPM3RELEASE="v${CAPM3_RELEASE_PREFIX}.99"
export CAPI_RELEASE_PREFIX="v${CAPM3_RELEASE_PREFIX}."
else
export CAPM3RELEASE="v1.10.99"
export CAPI_RELEASE_PREFIX="v1.9."
fi

# Default CAPI_CONFIG_FOLDER to $HOME/.config folder if XDG_CONFIG_HOME not set
CONFIG_FOLDER="${XDG_CONFIG_HOME:-$HOME/.config}"
export CAPI_CONFIG_FOLDER="${CONFIG_FOLDER}/cluster-api"
Expand Down

0 comments on commit 22fc609

Please sign in to comment.