Skip to content

Commit 9d29def

Browse files
release: Publish the optional configuration example
Make the versioned API discoverable alongside each release. Validate both assets before publishing and direct administrators to check for an existing instance before applying the example. Refs: #92 Assisted-by: AI Signed-off-by: HarshwardhanPatil07 <harshpat@redhat.com>
1 parent 38a7317 commit 9d29def

1 file changed

Lines changed: 17 additions & 12 deletions

File tree

‎.github/workflows/release.yaml‎

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,17 @@ jobs:
8383
echo "version=${VERSION}" >> "${GITHUB_OUTPUT}"
8484
echo "tag=v${VERSION}" >> "${GITHUB_OUTPUT}"
8585
86+
- name: Set up Go
87+
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
88+
with:
89+
go-version-file: go.mod
90+
cache: true # zizmor: ignore[cache-poisoning]
91+
92+
- name: Build and check release manifests
93+
env:
94+
TAG: ${{ steps.version.outputs.tag }}
95+
run: make verify-release-manifest IMG="${IMAGE}:${TAG}"
96+
8697
- name: Create and push tag
8798
env:
8899
TAG: ${{ steps.version.outputs.tag }}
@@ -114,12 +125,6 @@ jobs:
114125
exit 1
115126
fi
116127
117-
- name: Set up Go
118-
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
119-
with:
120-
go-version-file: go.mod
121-
cache: true # zizmor: ignore[cache-poisoning]
122-
123128
- name: Build and push container image
124129
env:
125130
TAG: ${{ steps.version.outputs.tag }}
@@ -130,11 +135,6 @@ jobs:
130135
podman login -u "${ACTOR}" -p "${GH_TOKEN}" ghcr.io
131136
podman push "${IMAGE}:${TAG}"
132137
133-
- name: Build install manifest
134-
env:
135-
TAG: ${{ steps.version.outputs.tag }}
136-
run: make release-manifest IMG="${IMAGE}:${TAG}"
137-
138138
- name: Package and push Helm charts
139139
env:
140140
VERSION: ${{ steps.version.outputs.version }}
@@ -169,6 +169,11 @@ jobs:
169169
printf 'kubectl apply -f https://github.com/%s/releases/download/%s/install.yaml\n' \
170170
"${GITHUB_REPOSITORY}" "${TAG}"
171171
printf '```\n\n'
172+
printf 'Optional configuration example: [operator-config.yaml](https://github.com/%s/releases/download/%s/operator-config.yaml). ' \
173+
"${GITHUB_REPOSITORY}" "${TAG}"
174+
printf 'Before applying it, check for an existing instance; see the [configuration guide](https://github.com/%s/blob/%s/docs/src/operations/configuration.md).\n' \
175+
"${GITHUB_REPOSITORY}" "${TAG}"
176+
printf '\n'
172177
printf '### Helm\n\n'
173178
printf '```bash\n'
174179
printf 'helm install bootc-operator oci://ghcr.io/%s/charts/bootc-operator --version %s \\\n' \
@@ -181,4 +186,4 @@ jobs:
181186
--notes-file notes.md \
182187
--generate-notes \
183188
--draft \
184-
install.yaml
189+
install.yaml operator-config.yaml

0 commit comments

Comments
 (0)