Skip to content

Commit

Permalink
Add separate parameter for updating nightly OLM files during release (#…
Browse files Browse the repository at this point in the history
…405)

Signed-off-by: Mykhailo Kuznietsov <mkuznets@redhat.com>
  • Loading branch information
mkuznyetsov committed Aug 18, 2020
1 parent 7fa2574 commit d108ee8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Export environment variables:
```
Usage: ./make-release.sh [RELEASE_VERSION] --release --release-olm-files --push-olm-files --push-git-changes --pull-requests
--release: to release
--update-nightly-olm-files: generate new olm files for nightly version
--release-olm-files: to release olm files
--push-olm-files: to push OLM files to quay.io. This flag should be omitted
if already a greater version released. For instance, we are releasing 7.9.3 version but
Expand Down
6 changes: 5 additions & 1 deletion make-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ init() {
PUSH_GIT_CHANGES=false
CREATE_PULL_REQUESTS=false
RELEASE_OLM_FILES=false
UPDATE_NIGHTLY_OLM_FILES=false
RELEASE_DIR=$(cd "$(dirname "$0")"; pwd)

if [[ $# -lt 1 ]]; then usage; exit; fi
Expand All @@ -32,6 +33,7 @@ init() {
'--push-git-changes') PUSH_GIT_CHANGES=true; shift 0;;
'--pull-requests') CREATE_PULL_REQUESTS=true; shift 0;;
'--release-olm-files') RELEASE_OLM_FILES=true; shift 0;;
'--update-nightly-olm-files') UPDATE_NIGHTLY_OLM_FILES=true; shift 0;;
'--help'|'-h') usage; exit;;
esac
shift 1
Expand Down Expand Up @@ -244,7 +246,9 @@ createPRToMasterBranch() {
run() {
checkoutToReleaseBranch
releaseOperatorCode
updateNightlyOlmFiles
if [[ $UPDATE_NIGHTLY_OLM_FILES == "true" ]]; then
updateNightlyOlmFiles
fi
if [[ $RELEASE_OLM_FILES == "true" ]]; then
releaseOlmFiles
fi
Expand Down

0 comments on commit d108ee8

Please sign in to comment.