Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VEC-440-align-with-asvec-version-trigger #4

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 14 additions & 10 deletions .github/workflows/build-chart-jfrog.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
name: Build and Bundle Jfrog Helm chart

on:
release:
types: [published]
push:
branches:
- main
tags:
- 'v*.*.*'
workflow_dispatch:
inputs:
chart_version:
Expand All @@ -24,13 +26,14 @@ jobs:
- name: Determine Version
id: get_version
run: |
if [[ -n "${{ github.event.release.tag_name }}" ]]; then
TAG_NAME=${{ github.event.release.tag_name }}
CHART_VERSION=${TAG_NAME#v}
elif [[ -n "${{ github.event.inputs.chart_version }}" ]]; then
if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
CHART_VERSION=${{ github.event.inputs.chart_version }}
elif [[ "${{ github.event_name}}" == "push" ]]; then
TAG=${GITHUB_REF#refs/tags/}
# Remove "v" prefix to get the version
CHART_VERSION=${TAG#v}
else
echo "Error: Tag name not provided and not a release event."
echo "Unable to determine version"
exit 1
fi
echo "CHART_VERSION=$CHART_VERSION" >> $GITHUB_ENV
Expand All @@ -54,7 +57,7 @@ jobs:
uses: mikefarah/yq@4839dbbf80445070a31c7a9c1055da527db2d5ee
with:
cmd: yq e -i '.version = "${{ env.CHART_VERSION }}"' charts/$CHART_NAME/Chart.yaml
- name: "Deploy sign and deploy helm to JFrog"
- name: "Sign and publish build to JFrog"
env:
GPG_TTY: no-tty
GPG_PASSPHRASE: ${{ secrets.GPG_PASS }}
Expand All @@ -65,7 +68,8 @@ jobs:
gpg --export-secret-keys --no-tty --passphrase "$GPG_PASSPHRASE">~/.gnupg/secring.gpg
echo $GPG_PASSPHRASE > passphrase.txt
helm --sign --key='aerospike-inc' --keyring='/home/runner/.gnupg/secring.gpg' --passphrase-file passphrase.txt package $CHART_NAME
jf rt u "${{env.CHART_NAME}}-${{env.CHART_VERSION}}.tgz" "${{env.JF_REPO}}/${{env.CHART_NAME}}/${{env.CHART_VERSION}}/" \
find .
jf rt u "${{env.CHART_NAME}}-${{env.CHART_VERSION}}.tgz*" "${{env.JF_REPO}}/${{env.CHART_NAME}}/${{env.CHART_VERSION}}/" \
--build-name="${{env.CHART_NAME}}-helm" --build-number="${{env.CHART_VERSION}}" --project="${{env.JF_PROJECT}}"
jf rt build-collect-env "${{env.CHART_NAME}}-helm" "${{env.CHART_VERSION}}"
jf rt build-add-git "${{env.CHART_NAME}}-helm" "${{env.CHART_VERSION}}"
Expand Down
2 changes: 1 addition & 1 deletion charts/aerospike-vector-search/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ maintainers:
email: [email protected]

# The helm chart version
version: 0.7.2
version: 0.7.0 # Patch version set during CI

# The default version of Aerospike Vector Search
appVersion: "1.0.0"
Loading