File tree Expand file tree Collapse file tree 4 files changed +5
-7
lines changed Expand file tree Collapse file tree 4 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -613,7 +613,7 @@ jobs:
613613 - run :
614614 command : |
615615 OPERATOR_PATH=$(python scripts/operator/package_operator_bundle.py "${NEW_OPERATOR_VERSION}" "${NEW_OPERATOR_VERSION}" "${NEW_OPERATOR_VERSION}" "${LAST_OPERATOR_VERSION}")
616- cp -r " ${OPERATOR_PATH}/" snyk-operator/deploy/olm-catalog/snyk-operator/
616+ echo "export OPERATOR_PATH= ${OPERATOR_PATH}" >> $BASH_ENV
617617 name : Package Operator Bundle
618618 - run :
619619 command : |
Original file line number Diff line number Diff line change 4747 name : Package Operator Bundle
4848 command : |
4949 OPERATOR_PATH=$(python scripts/operator/package_operator_bundle.py "${NEW_OPERATOR_VERSION}" "${NEW_OPERATOR_VERSION}" "${NEW_OPERATOR_VERSION}" "${LAST_OPERATOR_VERSION}")
50- cp -r "${OPERATOR_PATH}/" snyk-operator/deploy/olm-catalog/snyk-operator/
51-
50+ echo "export OPERATOR_PATH=${OPERATOR_PATH}" >> $BASH_ENV
5251 - run :
5352 name : Push new Operator to the fork of the community-operators repository
5453 command : |
Original file line number Diff line number Diff line change 4747 name : Package Operator Bundle
4848 command : |
4949 OPERATOR_PATH=$(python scripts/operator/package_operator_bundle.py "${NEW_OPERATOR_VERSION}" "${NEW_OPERATOR_VERSION}" "${NEW_OPERATOR_VERSION}" "${LAST_OPERATOR_VERSION}")
50- cp -r " ${OPERATOR_PATH}/" snyk-operator/deploy/olm-catalog/snyk-operator/
50+ echo "export OPERATOR_PATH= ${OPERATOR_PATH}" >> $BASH_ENV
5151
5252 - run :
5353 name : Push new Operator to the fork of the upstream-community-operators repository
Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ CURRENT_DIRECTORY=$1
1818COMMUNITY_FOLDER_LOCATION=$2
1919COMMUNITY_OPERATORS_UPSTREAM_LOCATION=" ${CURRENT_DIRECTORY} /community-operators"
2020DEPLOY_LOCATION=" ${COMMUNITY_OPERATORS_UPSTREAM_LOCATION} /${COMMUNITY_FOLDER_LOCATION} "
21- OPERATOR_LOCATION=" ${CURRENT_DIRECTORY} /snyk-operator/deploy/olm-catalog/snyk-operator"
2221
2322# Configure git user and gpg key
2423echo " ${OPENSHIFT_OPERATOR_SIGNING_KEY_BASE64} " | base64 -d | gpg --import
@@ -44,8 +43,8 @@ git checkout -b snyk/${COMMUNITY_FOLDER_LOCATION}/snyk-operator-v${NEW_OPERATOR_
4443mkdir -p " ${DEPLOY_LOCATION} /snyk-operator"
4544
4645# Copy new release to branch
47- cp -r " ${OPERATOR_LOCATION } /${NEW_OPERATOR_VERSION} " " ${DEPLOY_LOCATION} /snyk-operator/."
48- cp " ${OPERATOR_LOCATION } /snyk-operator.package.yaml" " ${DEPLOY_LOCATION} /snyk-operator/."
46+ cp -r " ${OPERATOR_PATH } /${NEW_OPERATOR_VERSION} " " ${DEPLOY_LOCATION} /snyk-operator/."
47+ cp " ${OPERATOR_PATH } /snyk-operator.package.yaml" " ${DEPLOY_LOCATION} /snyk-operator/."
4948
5049# Create the signed commit and push
5150git add " ${DEPLOY_LOCATION} /snyk-operator/*"
You can’t perform that action at this time.
0 commit comments