...
Based on the above general information, we therefore make two releases of the corresponding Helm Chart. In order to do this, we need to update 4 3 lines of code, namely
- https://github.com/apache/tika-helm/blob/main/Chart.yaml#L22
- https://github.com/apache/tika-helm/blob/main/Chart.yaml#L41
- Chart.yaml#L49
- yaml#L23
- https://github.com/apache/tika-helm/blob/main/values.yaml#L26
We can do this with the following command
...
language | bash |
---|---|
title | Change all version numbers to target release |
...
appVersion needs to match the corresponding upstream tika-docker release tag.
Once you have examined the changes, you can commit them (to the ${target_version} branch)to main branch. Then tag them from there and push the tag to the tika-helm repository.
Code Block | ||||
---|---|---|---|---|
| ||||
$ git add -A $ git commit -m "Release branch for tika-helm ${target_version}" $ git push origin main $ git tag -a ${target_version} -m "Release tika-helm ${target_version}" $ git push origin ${target_version}--tags |
Once this is done, you can navigate to the ${target_version} tag you just pushed and 'release' it (by clicking on the three dots button on the right hand side).
Promoting Release to the Apache JFrog Artifactory Repository
N.B. You should still be in the ${target_version} branch
Prerequisites
- Helm
- helm-push-artifactory-plugin (if you are using Helm v3 (recommended) then add
--version 1.0.2
), for example
Code Block | ||||
---|---|---|---|---|
| ||||
# Assuming Mac $ brew install helm # Which will install Helm >=3.X $ helm plugin install https://github.com/belitre/helm-push-artifactory-plugin --version 1.0.2 # Which is required for >= Helm 3.X ... Installing plugin for Helm v3... Downloading and installing helm-push-artifactory v1.0.2 ... https://github.com/belitre/helm-push-artifactory-plugin/releases/download/v1.0.2/helm-push-artifactory-v1.0.2-darwin-amd64.tar.gz Installed plugin: push-artifactory |
Promoting the Release
First, download the release artifact you just released to Github. We will assume this artifact is named tika-${target_version}.tar.gz
Code Block | ||
---|---|---|
| ||
# Add the tika Helm repository $ helm repo add tika https://apache.jfrog.io/artifactory/tika # Push the tika helm artifact to Artifactory $ helm push-artifactory tika-helm-${target_version}.tar.gz https://apache.jfrog.io/artifactory/tika --username '${username}' --password "${password}" ... Pushing tika-1.26-full.tgz to https://apache.jfrog.io/artifactory/tika/tika/tika-1.26-full.tgz... Done. Reindex helm repository tika... |
...