Skip to content

Commit 34f54d5

Browse files
authoredMar 5, 2025
Attach bundle to release (#702)
1 parent 70b337a commit 34f54d5

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed
 

‎.github/workflows/release.yml

+11
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,17 @@ jobs:
163163
asset_name: coherence-dashboards.tar.gz
164164
asset_content_type: application/tar+gzip
165165

166+
- name: Upload Bundle
167+
id: upload-bundle
168+
uses: actions/upload-release-asset@v1
169+
env:
170+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
171+
with:
172+
upload_url: ${{ github.event.release.upload_url }}
173+
asset_path: /tmp/coherence-operator/_output/coherence-operator-bundle.tar.gz
174+
asset_name: coherence-operator-bundle.tar.gz
175+
asset_content_type: application/tar+gzip
176+
166177
- name: Upload Docs
167178
id: upload-docs
168179
uses: actions/upload-release-asset@v1

‎Makefile

+6-1
Original file line numberDiff line numberDiff line change
@@ -940,6 +940,11 @@ bundle: $(BUILD_PROPS) ensure-sdk $(TOOLS_BIN)/kustomize $(BUILD_TARGETS)/manife
940940
$(OPERATOR_SDK) bundle validate ./bundle --select-optional name=operatorhubv2 --optional-values=k8s-version=1.26
941941
$(OPERATOR_SDK) bundle validate ./bundle --select-optional name=capabilities --optional-values=k8s-version=1.26
942942
$(OPERATOR_SDK) bundle validate ./bundle --select-optional name=categories --optional-values=k8s-version=1.26
943+
rm -rf $(BUILD_OUTPUT)/bundle || true
944+
mkdir -p $(BUILD_OUTPUT)/bundle/coherence-operator/$(VERSION) || true
945+
cp -R bundle/ $(BUILD_OUTPUT)/bundle/coherence-operator/$(VERSION)/
946+
rm $(BUILD_OUTPUT)/bundle/coherence-operator/$(VERSION)/ci.yaml
947+
tar -C $(BUILD_OUTPUT)/bundle -czf $(BUILD_OUTPUT)/coherence-operator-bundle.tar.gz .
943948
rm -rf bundle_tmp*
944949

945950
# ----------------------------------------------------------------------------------------------------------------------
@@ -2533,7 +2538,7 @@ push-all-ttl-images: push-ttl-operator-images push-ttl-test-images
25332538
# Push all of the images that are released
25342539
# ----------------------------------------------------------------------------------------------------------------------
25352540
.PHONY: push-release-images
2536-
push-release-images: push-operator-image bundle-push catalog-build catalog-push tanzu-repo
2541+
push-release-images: push-operator-image bundle-push catalog-push tanzu-repo
25372542

25382543
# ----------------------------------------------------------------------------------------------------------------------
25392544
# Install Prometheus

‎config/manager/kustomization.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ resources:
88

99
images:
1010
- name: controller
11-
newName: ghcr.io/thegridman/coherence-operator
11+
newName: ghcr.io/oracle/coherence-operator
1212
newTag: 3.4.3

0 commit comments

Comments
 (0)