Skip to content

Commit edf9c8f

Browse files
committed
feat: save pre-release charts in CI
1 parent b37b70b commit edf9c8f

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/lint-test.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,17 @@ jobs:
5050

5151
- name: Run chart-testing (install)
5252
run: ct install --config ct.yaml
53+
54+
- id: get-version
55+
name: Memorize pre-release version
56+
run: |
57+
echo version=$(helm show chart ./charts/flagsmith | grep -oP '^version: \K.*')-a$(date +"%Y%m%d%H%M%S") >> $GITHUB_OUTPUT
58+
59+
- name: Package the pre-release chart
60+
run: helm package ./charts/flagsmith --version ${{ steps.get-version.outputs.version }} --destination out
61+
62+
- name: Save the pre-release chart archive
63+
uses: actions/upload-artifact@v3
64+
with:
65+
name: flagsmith-${{ steps.get-version.outputs.version }}.tgz
66+
path: out/flagsmith-${{ steps.get-version.outputs.version }}.tgz

0 commit comments

Comments
 (0)