mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2024-12-14 11:58:02 +00:00
chore(helm): Make release pipeline to update golden files (#916)
Golden files need to be updated as version is updated in the `Chart.yaml` file. This commit adds the step to update the golden files in the release pipeline. To make that possible, The following additional changes are also required: - `Go.Work`: This adds support multi-module projects as we will have the tests along with the operator in sub-folders. This is required to run go cmds from the root directory. (like running tests in this case). - `.helmignore`: This updates the Helm chart to ignore the `/ci` folder during helm packaging as those are not required for users of the chart.
This commit is contained in:
parent
a37ccbfb28
commit
5c57e4efe2
4 changed files with 15 additions and 3 deletions
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
|
@ -101,8 +101,7 @@ jobs:
|
||||||
|
|
||||||
- name: Chart Rendering Tests
|
- name: Chart Rendering Tests
|
||||||
run: |
|
run: |
|
||||||
cd contrib/charts/dragonfly
|
go test -v ./contrib/charts/dragonfly/...
|
||||||
go test -v ./...
|
|
||||||
|
|
||||||
- name: Set up chart-testing
|
- name: Set up chart-testing
|
||||||
uses: helm/chart-testing-action@v2.3.1
|
uses: helm/chart-testing-action@v2.3.1
|
||||||
|
|
8
.github/workflows/docker-release.yml
vendored
8
.github/workflows/docker-release.yml
vendored
|
@ -70,6 +70,9 @@ jobs:
|
||||||
- name: Install helm
|
- name: Install helm
|
||||||
uses: azure/setup-helm@v3
|
uses: azure/setup-helm@v3
|
||||||
|
|
||||||
|
- name: Setup Go
|
||||||
|
uses: actions/setup-go@v3
|
||||||
|
|
||||||
- name: Configure Git
|
- name: Configure Git
|
||||||
if: env.IS_PRERELEASE != 'true'
|
if: env.IS_PRERELEASE != 'true'
|
||||||
run: |
|
run: |
|
||||||
|
@ -85,9 +88,12 @@ jobs:
|
||||||
-e 's/^(appVersion\:) .*/\1 "'${{ env.TAG_NAME }}'"/g' \
|
-e 's/^(appVersion\:) .*/\1 "'${{ env.TAG_NAME }}'"/g' \
|
||||||
contrib/charts/dragonfly/Chart.yaml
|
contrib/charts/dragonfly/Chart.yaml
|
||||||
|
|
||||||
|
go test ./contrib/charts/dragonfly/... -update
|
||||||
|
|
||||||
git commit \
|
git commit \
|
||||||
-m 'chore(helm-chart): update to ${{ env.TAG_NAME }}' \
|
-m 'chore(helm-chart): update to ${{ env.TAG_NAME }}' \
|
||||||
contrib/charts/dragonfly/Chart.yaml
|
contrib/charts/dragonfly/Chart.yaml \
|
||||||
|
contrib/charts/dragonfly/ci
|
||||||
|
|
||||||
- name: Push Helm chart as OCI to Github
|
- name: Push Helm chart as OCI to Github
|
||||||
if: env.IS_PRERELEASE != 'true'
|
if: env.IS_PRERELEASE != 'true'
|
||||||
|
|
|
@ -21,3 +21,7 @@
|
||||||
.idea/
|
.idea/
|
||||||
*.tmproj
|
*.tmproj
|
||||||
.vscode/
|
.vscode/
|
||||||
|
ci/
|
||||||
|
*.go
|
||||||
|
go.mod
|
||||||
|
go.sum
|
||||||
|
|
3
go.work
Normal file
3
go.work
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
go 1.20
|
||||||
|
|
||||||
|
use ./contrib/charts/dragonfly
|
Loading…
Reference in a new issue