Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Anatolii Bazko <[email protected]>
  • Loading branch information
tolusha committed Jun 11, 2021
1 parent 4202883 commit 12a291c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/bin/check-resources.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
# - nightly olm bundle

set -e
set -x

ROOT_PROJECT_DIR="${GITHUB_WORKSPACE}"
if [ -z "${ROOT_PROJECT_DIR}" ]; then
Expand All @@ -25,11 +26,11 @@ fi
installOperatorSDK() {
OPERATOR_SDK_BINARY=$(command -v operator-sdk) || true
if [[ ! -x "${OPERATOR_SDK_BINARY}" ]]; then
OPERATOR_SDK_TEMP_DIR="$(mktemp -q -d -t "OPERATOR_SDK_XXXXXX" 2>/dev/null || mktemp -q -d)"
pushd "${OPERATOR_SDK_TEMP_DIR}" || exit

echo "[INFO] Downloading 'operator-sdk' cli tool..."

OPERATOR_SDK_TEMP_DIR="$(mktemp -q -d -t "OPERATOR_SDK_XXXXXX" 2>/dev/null || mktemp -q -d)"
OPERATOR_SDK=$(yq -r ".\"operator-sdk\"" "${ROOT_PROJECT_DIR}/REQUIREMENTS")
curl -sLo operator-sdk $(curl -sL https://api.github.com/repos/operator-framework/operator-sdk/releases/tags/${OPERATOR_SDK} | jq -r "[.assets[] | select(.name == \"operator-sdk-${OPERATOR_SDK}-x86_64-linux-gnu\")] | first | .browser_download_url")
export OPERATOR_SDK_BINARY="${OPERATOR_SDK_TEMP_DIR}/operator-sdk"
Expand Down
2 changes: 2 additions & 0 deletions .github/bin/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ curl -L https://api.github.com/repos/devfile/devworkspace-operator/zipball/${DEV
mv /tmp/devfile-devworkspace-operator-*/deploy ${TEMPLATES}/devworkspace

cp -rf ${OPERATOR_REPO}/deploy/* "${TEMPLATES}/che-operator"

tree "${TEMPLATES}/che-operator"
}

getLatestsStableVersions() {
Expand Down

0 comments on commit 12a291c

Please sign in to comment.