-
Notifications
You must be signed in to change notification settings - Fork 0
add pr based chart releases #24
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
Merged
Merged
Changes from 6 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
02651b2
add pr based chart releases
KevinGruber2001 8215e85
minor path issue
KevinGruber2001 0e73e6d
minor config issue
KevinGruber2001 7b17667
minor config update
KevinGruber2001 0d7fff7
pull request write enabled
KevinGruber2001 a34ffb4
add prometheus plugin to reposilite
KevinGruber2001 27eef75
remove prometheus credentials
KevinGruber2001 fef0f59
Gitignore cleanup
KevinGruber2001 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| { | ||
| "permissions": { | ||
| "allow": [ | ||
| "WebFetch(domain:eclipsesource.com)", | ||
| "WebFetch(domain:github.com)", | ||
| "Bash(gh api:*)", | ||
| "WebFetch(domain:raw.githubusercontent.com)", | ||
| "WebFetch(domain:docs.artemis.tum.de)" | ||
| ] | ||
| } | ||
| } | ||
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| name: Chart Preview | ||
|
|
||
| on: | ||
| pull_request: | ||
| paths: | ||
| - 'chart/**' | ||
| - '.github/workflows/chart-preview.yml' | ||
|
|
||
| jobs: | ||
| preview: | ||
| permissions: | ||
| contents: read | ||
| packages: write | ||
| pull-requests: write | ||
| runs-on: ubuntu-latest | ||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Install Helm | ||
| uses: azure/setup-helm@v4 | ||
|
|
||
| - name: Update chart dependencies | ||
| run: helm dependency update ./chart | ||
|
|
||
| - name: Set preview version | ||
| run: | | ||
| CURRENT_VERSION=$(grep '^version:' chart/Chart.yaml | awk '{print $2}') | ||
| PREVIEW_VERSION="${CURRENT_VERSION}-pr.${{ github.event.pull_request.number }}" | ||
| sed -i "s/^version: .*/version: ${PREVIEW_VERSION}/" chart/Chart.yaml | ||
| echo "PREVIEW_VERSION=${PREVIEW_VERSION}" >> $GITHUB_ENV | ||
|
KevinGruber2001 marked this conversation as resolved.
|
||
|
|
||
| - name: Login to GHCR | ||
| run: echo "${{ secrets.GITHUB_TOKEN }}" | helm registry login ghcr.io -u ${{ github.actor }} --password-stdin | ||
|
|
||
| - name: Package and push | ||
| run: | | ||
| helm package ./chart | ||
| helm push theia-shared-cache-${PREVIEW_VERSION}.tgz oci://ghcr.io/${{ github.repository_owner }}/charts | ||
|
|
||
| - name: Comment install instructions | ||
| uses: marocchino/sticky-pull-request-comment@v2 | ||
| with: | ||
| header: chart-preview | ||
| message: | | ||
| ## 📦 Chart Preview Ready | ||
|
|
||
| ```bash | ||
| helm install test oci://ghcr.io/${{ github.repository_owner }}/charts/theia-shared-cache --version ${{ env.PREVIEW_VERSION }} | ||
| ``` | ||
|
|
||
| _Updated: ${{ github.sha }}_ | ||
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This local settings file likely shouldn't be committed.
.claude/settings.local.jsonis a developer-specific configuration file (note the.localsuffix). It should typically be added to.gitignorerather than tracked in version control, as different developers may need different permission settings.🤖 Prompt for AI Agents