Skip to content

Commit be118d6

Browse files
committed
fix: Set OCP bundle default channel to stable
Signed-off-by: Fred Rolland <[email protected]>
1 parent 5508251 commit be118d6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,11 @@ jobs:
128128
if [[ "${{ github.ref_type }}" == "tag" ]]; then
129129
version_major_minor=$(echo $VERSION_WITH_PREFIX | grep -Eo 'v[0-9]+\.[0-9]+')
130130
export CHANNELS=stable,$version_major_minor
131-
export DEFAULT_CHANNEL=$version_major_minor
131+
export DEFAULT_CHANNEL=stable
132132
export VERSION=${{ env.VERSION_WITHOUT_PREFIX }}
133133
elif [[ "${{ github.ref_type }}" == "branch" ]]; then
134134
export CHANNELS=stable,v1.1 # hard coded
135-
export DEFAULT_CHANNEL=v1.1 # hard coded
135+
export DEFAULT_CHANNEL=stable # hard coded
136136
export VERSION=1.1.0-${{ env.VERSION_WITH_PREFIX }} # using the commit hash
137137
export NETWORK_OPERATOR_VERSION=${{ env.VERSION_WITH_PREFIX }} # for push use commit sha
138138
fi

docs/operator-bundle.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Build the bundle:
1111

1212
**Note**:
1313
- `VERSION` should be a valid semantic version
14-
- `DEFAULT_CHANNEL` should be in the following format: `vMAJOR.MINOR`, without the patch version
14+
- `DEFAULT_CHANNEL` should be `stable`
1515
- `CHANNELS` should include the `DEFAULT_CHANNEL` value and `stable` seperated by a comma
1616
- `TAG` should use SHA256
1717

@@ -23,7 +23,7 @@ skopeo inspect docker://nvcr.io/nvidia/cloud-native/network-operator:v1.1.0 | jq
2323
```
2424

2525
```bash
26-
DEFAULT_CHANNEL=v1.1 CHANNELS=v1.1,stable VERSION=1.1.0 TAG=nvcr.io/nvidia/cloud-native/network-operator@sha256:17afa53f1cf3733c8d0cd282c565975ed5de3124dfc2b7c485ad12c97e51c251 make bundle
26+
DEFAULT_CHANNEL=stable CHANNELS=v1.1,stable VERSION=1.1.0 TAG=nvcr.io/nvidia/cloud-native/network-operator@sha256:17afa53f1cf3733c8d0cd282c565975ed5de3124dfc2b7c485ad12c97e51c251 make bundle
2727
```
2828

2929
Build the bundle image:

0 commit comments

Comments
 (0)