Skip to content

Commit

Permalink
cange file locations, replace index files generator for github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
tarampampam committed Feb 1, 2025
1 parent bb07d2c commit a65e24a
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 15 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ jobs:
helm-pack:
name: Pack the Helm chart
runs-on: ubuntu-latest
defaults: {run: {working-directory: ./chart}}
defaults: {run: {working-directory: ./deployments/helm}}
steps:
- uses: actions/checkout@v4
- uses: azure/setup-helm@v4
Expand All @@ -136,7 +136,7 @@ jobs:
- uses: actions/upload-artifact@v4
with:
name: helm-chart
path: ./chart/*.tgz
path: ./deployments/helm/*.tgz
if-no-files-found: error
retention-days: 1

Expand All @@ -147,10 +147,6 @@ jobs:
steps:
- {uses: actions/checkout@v4, with: {ref: gh-pages}}
- uses: azure/setup-helm@v4
- name: Configure git
run: |
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor }}@users.noreply.github.com"
- uses: actions/download-artifact@v4
with: {name: helm-chart, path: ./helm-charts}
- name: Update the index.yaml
Expand All @@ -160,12 +156,13 @@ jobs:
--merge \
./helm-charts/index.yaml \
./helm-charts
- name: Update the index.html
run: tree -H '.' --noreport --dirsfirst -T 'Index' --charset utf-8 -P "*.tgz" -o ./index.html
- uses: yKicchan/generate-directory-listing-action@v1
with: {target: ., override: true}
- name: Commit and push the changes
run: |
git add 'helm-charts/*' index.html
git commit -m "Helm chart release"
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor }}@users.noreply.github.com"
git commit -am "Helm chart release"
git push origin gh-pages
deploy-on-render:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ jobs:
backend: ['api/**', 'cmd/**', 'internal/**', '*go*', 'web/**/*.go']
frontend: ['api/**', 'web/**']
docker: [Dockerfile, '*docker*']
helm: ['chart/**', '*kube*']
helm: ['deployments/helm/**', '*kube*']
lint-charts:
name: Lint the chart
runs-on: ubuntu-latest
needs: [filter]
if: needs.filter.outputs.helm == 'true'
defaults: {run: {working-directory: ./chart}}
defaults: {run: {working-directory: ./deployments/helm}}
steps:
- uses: actions/checkout@v4
- uses: azure/setup-helm@v4
Expand Down Expand Up @@ -167,7 +167,7 @@ jobs:
name: Build the docker image
runs-on: ubuntu-latest
needs: [filter]
if: needs.filter.outputs.docker == 'true'
if: ${{ needs.filter.outputs.docker == 'true' || needs.filter.outputs.backend == 'true' }}
steps:
- uses: actions/checkout@v4
- uses: docker/build-push-action@v6
Expand Down
4 changes: 2 additions & 2 deletions chart/Chart.yaml β†’ deployments/helm/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: webhook-tester
description: Powerful tool for testing WebHooks and more

type: application
version: 0.1.0
appVersion: 2.0.1
version: 0.0.0 # will be replaced by the release workflow
appVersion: 0.0.0 # will be replaced by the release workflow
icon: https://github.com/user-attachments/assets/e2e659dc-7fb1-4ac2-ad3c-883899f5fc38
sources: [https://github.com/tarampampam/webhook-tester]
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.

0 comments on commit a65e24a

Please sign in to comment.