Skip to content

Commit 7a4ebda

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 1108008 commit 7a4ebda

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
@@ -81,6 +81,17 @@ jobs:
8181
echo "version=${VERSION}" >> "${GITHUB_OUTPUT}"
8282
echo "tag=v${VERSION}" >> "${GITHUB_OUTPUT}"
8383
84+
- name: Set up Go
85+
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
86+
with:
87+
go-version-file: go.mod
88+
cache: true # zizmor: ignore[cache-poisoning]
89+
90+
- name: Build and check release manifests
91+
env:
92+
TAG: ${{ steps.version.outputs.tag }}
93+
run: make verify-release-manifest IMG="${IMAGE}:${TAG}"
94+
8495
- name: Create and push tag
8596
env:
8697
TAG: ${{ steps.version.outputs.tag }}
@@ -107,12 +118,6 @@ jobs:
107118
-f "sha=${SHA}"
108119
fi
109120
110-
- name: Set up Go
111-
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
112-
with:
113-
go-version-file: go.mod
114-
cache: true # zizmor: ignore[cache-poisoning]
115-
116121
- name: Build and push container image
117122
env:
118123
TAG: ${{ steps.version.outputs.tag }}
@@ -123,11 +128,6 @@ jobs:
123128
podman login -u "${ACTOR}" -p "${GH_TOKEN}" ghcr.io
124129
podman push "${IMAGE}:${TAG}"
125130
126-
- name: Build install manifest
127-
env:
128-
TAG: ${{ steps.version.outputs.tag }}
129-
run: make release-manifest IMG="${IMAGE}:${TAG}"
130-
131131
- name: Package and push Helm chart
132132
env:
133133
VERSION: ${{ steps.version.outputs.version }}
@@ -154,6 +154,11 @@ jobs:
154154
printf 'kubectl apply -f https://github.com/%s/releases/download/%s/install.yaml\n' \
155155
"${GITHUB_REPOSITORY}" "${TAG}"
156156
printf '```\n\n'
157+
printf 'Optional configuration example: [operator-config.yaml](https://github.com/%s/releases/download/%s/operator-config.yaml). ' \
158+
"${GITHUB_REPOSITORY}" "${TAG}"
159+
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' \
160+
"${GITHUB_REPOSITORY}" "${TAG}"
161+
printf '\n'
157162
printf '### Helm\n\n'
158163
printf '```bash\n'
159164
printf 'helm install bootc-operator oci://ghcr.io/%s/charts/bootc-operator --version %s \\\n' \
@@ -166,4 +171,4 @@ jobs:
166171
--notes-file notes.md \
167172
--generate-notes \
168173
--draft \
169-
install.yaml
174+
install.yaml operator-config.yaml

0 commit comments

Comments
 (0)