Skip to content

Commit

Permalink
fixed release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
spilchen authored and cchen-vertica committed Aug 8, 2024
1 parent d6ecfbc commit b92a5ce
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/build-release-assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
helm package verticadb-operator
ls -lhrt
- name: Upload files
- name: Upload release-artifacts
uses: actions/upload-artifact@v4
with:
name: release-artifacts
Expand All @@ -56,4 +56,10 @@ jobs:
/home/runner/work/vertica-kubernetes/vertica-kubernetes/config/release-manifests/*yaml
/home/runner/work/vertica-kubernetes/vertica-kubernetes/helm-charts/*.tgz
/home/runner/work/vertica-kubernetes/vertica-kubernetes/bin/vdb-gen
- name: Upload bundle
uses: actions/upload-artifact@v4
with:
name: olm-bundle
path: |
/home/runner/work/vertica-kubernetes/vertica-kubernetes/bundle
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,20 +99,20 @@ jobs:
if: ${{ inputs.action == 'upload bundle for operatorhub OLM catalog' || inputs.action == 'all' }}
uses: ./vertica-kubernetes/.github/actions/upload-opm-bundle
with:
token: ${{ secrets.PAT_TOKEN }}
token: ${{ secrets.OLM_RELEASE }}
version: ${{ env.VERSION }}
upstreamRepo: k8s-operatorhub/community-operators
forkRepo: spilchen/community-operators
forkRepo: cchen-vertica/community-operators
localRepoPath: community-operators
bundlePath: vertica-kubernetes/ci-artifacts/${{ env.VERSION }}/olm-bundle
bundlePath: vertica-kubernetes/ci-artifacts/${{ env.VERSION }}/release-artifacts/bundle

- name: Upload the OPM bundle to fork of redhat-openshift-ecosystem/community-operators-prod
if: ${{ inputs.action == 'upload bundle for openshift OLM catalog' || inputs.action == 'all' }}
uses: ./vertica-kubernetes/.github/actions/upload-opm-bundle
with:
token: ${{ secrets.PAT_TOKEN }}
token: ${{ secrets.OLM_RELEASE }}
version: ${{ env.VERSION }}
upstreamRepo: redhat-openshift-ecosystem/community-operators-prod
forkRepo: spilchen/community-operators-prod
forkRepo: cchen-vertica/community-operators-prod
localRepoPath: community-operators-prod
bundlePath: vertica-kubernetes/ci-artifacts/${{ env.VERSION }}/olm-bundle
bundlePath: vertica-kubernetes/ci-artifacts/${{ env.VERSION }}/release-artifacts/bundle
5 changes: 4 additions & 1 deletion scripts/create-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,7 @@ gh release create v$VERSION \
--notes-file $TMP_CHANGELOG_FILE \
--target $VERSION_SHA \
--title "Vertica Kubernetes $VERSION" \
$ARTIFACTS_DIR/*
$ARTIFACTS_DIR/bin/* \
$ARTIFACTS_DIR/config/*/* \
$ARTIFACTS_DIR/helm-charts/*tgz \
$ARTIFACTS_DIR/helm-charts/verticadb-operator/crds/*

0 comments on commit b92a5ce

Please sign in to comment.