Skip to content

Commit b92a5ce

Browse files
spilchencchen-vertica
authored andcommitted
fixed release workflow
1 parent d6ecfbc commit b92a5ce

File tree

3 files changed

+17
-8
lines changed

3 files changed

+17
-8
lines changed

.github/workflows/build-release-assets.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
helm package verticadb-operator
4848
ls -lhrt
4949
50-
- name: Upload files
50+
- name: Upload release-artifacts
5151
uses: actions/upload-artifact@v4
5252
with:
5353
name: release-artifacts
@@ -56,4 +56,10 @@ jobs:
5656
/home/runner/work/vertica-kubernetes/vertica-kubernetes/config/release-manifests/*yaml
5757
/home/runner/work/vertica-kubernetes/vertica-kubernetes/helm-charts/*.tgz
5858
/home/runner/work/vertica-kubernetes/vertica-kubernetes/bin/vdb-gen
59+
60+
- name: Upload bundle
61+
uses: actions/upload-artifact@v4
62+
with:
63+
name: olm-bundle
64+
path: |
5965
/home/runner/work/vertica-kubernetes/vertica-kubernetes/bundle

.github/workflows/release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,20 +99,20 @@ jobs:
9999
if: ${{ inputs.action == 'upload bundle for operatorhub OLM catalog' || inputs.action == 'all' }}
100100
uses: ./vertica-kubernetes/.github/actions/upload-opm-bundle
101101
with:
102-
token: ${{ secrets.PAT_TOKEN }}
102+
token: ${{ secrets.OLM_RELEASE }}
103103
version: ${{ env.VERSION }}
104104
upstreamRepo: k8s-operatorhub/community-operators
105-
forkRepo: spilchen/community-operators
105+
forkRepo: cchen-vertica/community-operators
106106
localRepoPath: community-operators
107-
bundlePath: vertica-kubernetes/ci-artifacts/${{ env.VERSION }}/olm-bundle
107+
bundlePath: vertica-kubernetes/ci-artifacts/${{ env.VERSION }}/release-artifacts/bundle
108108

109109
- name: Upload the OPM bundle to fork of redhat-openshift-ecosystem/community-operators-prod
110110
if: ${{ inputs.action == 'upload bundle for openshift OLM catalog' || inputs.action == 'all' }}
111111
uses: ./vertica-kubernetes/.github/actions/upload-opm-bundle
112112
with:
113-
token: ${{ secrets.PAT_TOKEN }}
113+
token: ${{ secrets.OLM_RELEASE }}
114114
version: ${{ env.VERSION }}
115115
upstreamRepo: redhat-openshift-ecosystem/community-operators-prod
116-
forkRepo: spilchen/community-operators-prod
116+
forkRepo: cchen-vertica/community-operators-prod
117117
localRepoPath: community-operators-prod
118-
bundlePath: vertica-kubernetes/ci-artifacts/${{ env.VERSION }}/olm-bundle
118+
bundlePath: vertica-kubernetes/ci-artifacts/${{ env.VERSION }}/release-artifacts/bundle

scripts/create-release.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,4 +83,7 @@ gh release create v$VERSION \
8383
--notes-file $TMP_CHANGELOG_FILE \
8484
--target $VERSION_SHA \
8585
--title "Vertica Kubernetes $VERSION" \
86-
$ARTIFACTS_DIR/*
86+
$ARTIFACTS_DIR/bin/* \
87+
$ARTIFACTS_DIR/config/*/* \
88+
$ARTIFACTS_DIR/helm-charts/*tgz \
89+
$ARTIFACTS_DIR/helm-charts/verticadb-operator/crds/*

0 commit comments

Comments
 (0)