generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: release charts from GH repo (#3095)
- Loading branch information
1 parent
86381ac
commit f4fbc42
Showing
15 changed files
with
38 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -101,13 +101,6 @@ jobs: | |
with: | ||
username: ftl0 | ||
password: ${{ secrets.FTL_DOCKER_PUSH_TOKEN }} | ||
- name: Push Helm Chart | ||
run: | | ||
helm registry login -u ftl0 -p "$PASSWORD" registry-1.docker.io | ||
version="$(git describe --tags --abbrev=0 | sed 's/v//')" | ||
just chart release oci://registry-1.docker.io/ftl0 "$version" | ||
env: | ||
PASSWORD: ${{ secrets.FTL_DOCKER_PUSH_TOKEN }} | ||
- name: Push Docker Images | ||
run: | | ||
version="$(git describe --tags --abbrev=0)" | ||
|
@@ -225,3 +218,35 @@ jobs: | |
just publish-extension | ||
env: | ||
VSCE_PAT: ${{ secrets.VSCE_PAT }} | ||
helm-release: | ||
name: Release Helm Charts | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
name: "Checkout Charts Repository" | ||
with: | ||
repository: 'stuartwdouglas/ftl-charts' | ||
token: '${{ secrets.FTL_CHARTS_TOKEN }}' | ||
fetch-depth: 0 | ||
- name: Checkout FTL | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
path: .ftl | ||
- name: Init Hermit | ||
uses: cashapp/[email protected] | ||
with: | ||
working-directory: '.ftl' | ||
- name: Configure Git | ||
run: | | ||
git config user.name "$GITHUB_ACTOR" | ||
git config user.email "[email protected]" | ||
git config pull.rebase true | ||
- name: Sync Charts to Charts Repository | ||
run: | | ||
version="$(git describe --tags --abbrev=0 | sed 's/v//')" | ||
( cd .ftl && just chart set-version "$version" ) | ||
cp -r .ftl/charts/ charts/ | ||
git add charts | ||
git commit -a -m "Update charts" | ||
git push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,5 +46,5 @@ junit*.xml | |
.ftl.lock | ||
docker-build/ | ||
**/.ftl | ||
charts/charts/ | ||
charts/output/ | ||
charts/**/charts/ | ||
charts/**/output/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.