Skip to content

Commit

Permalink
Attach bundle to release (#702)
Browse files Browse the repository at this point in the history
  • Loading branch information
thegridman authored Mar 5, 2025
1 parent 70b337a commit 34f54d5
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,17 @@ jobs:
asset_name: coherence-dashboards.tar.gz
asset_content_type: application/tar+gzip

- name: Upload Bundle
id: upload-bundle
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: /tmp/coherence-operator/_output/coherence-operator-bundle.tar.gz
asset_name: coherence-operator-bundle.tar.gz
asset_content_type: application/tar+gzip

- name: Upload Docs
id: upload-docs
uses: actions/upload-release-asset@v1
Expand Down
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -940,6 +940,11 @@ bundle: $(BUILD_PROPS) ensure-sdk $(TOOLS_BIN)/kustomize $(BUILD_TARGETS)/manife
$(OPERATOR_SDK) bundle validate ./bundle --select-optional name=operatorhubv2 --optional-values=k8s-version=1.26
$(OPERATOR_SDK) bundle validate ./bundle --select-optional name=capabilities --optional-values=k8s-version=1.26
$(OPERATOR_SDK) bundle validate ./bundle --select-optional name=categories --optional-values=k8s-version=1.26
rm -rf $(BUILD_OUTPUT)/bundle || true
mkdir -p $(BUILD_OUTPUT)/bundle/coherence-operator/$(VERSION) || true
cp -R bundle/ $(BUILD_OUTPUT)/bundle/coherence-operator/$(VERSION)/
rm $(BUILD_OUTPUT)/bundle/coherence-operator/$(VERSION)/ci.yaml
tar -C $(BUILD_OUTPUT)/bundle -czf $(BUILD_OUTPUT)/coherence-operator-bundle.tar.gz .
rm -rf bundle_tmp*

# ----------------------------------------------------------------------------------------------------------------------
Expand Down Expand Up @@ -2533,7 +2538,7 @@ push-all-ttl-images: push-ttl-operator-images push-ttl-test-images
# Push all of the images that are released
# ----------------------------------------------------------------------------------------------------------------------
.PHONY: push-release-images
push-release-images: push-operator-image bundle-push catalog-build catalog-push tanzu-repo
push-release-images: push-operator-image bundle-push catalog-push tanzu-repo

# ----------------------------------------------------------------------------------------------------------------------
# Install Prometheus
Expand Down
2 changes: 1 addition & 1 deletion config/manager/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ resources:

images:
- name: controller
newName: ghcr.io/thegridman/coherence-operator
newName: ghcr.io/oracle/coherence-operator
newTag: 3.4.3

0 comments on commit 34f54d5

Please sign in to comment.