diff --git a/.github/workflows/helm-chart.yml b/.github/workflows/helm-chart.yml deleted file mode 100644 index e6c38681..00000000 --- a/.github/workflows/helm-chart.yml +++ /dev/null @@ -1,61 +0,0 @@ -# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json -# docs: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions - -name: 🧪 Chart - -on: - workflow_dispatch: {} - push: - branches: [feat/helm] # TODO: change to [master, main] - paths-ignore: ['**.md'] - pull_request: - paths-ignore: ['**.md'] - -concurrency: - group: ${{ github.ref }}-charts - cancel-in-progress: true - -jobs: - helm-pack: - name: Pack the Helm chart - runs-on: ubuntu-latest - defaults: {run: {working-directory: ./chart}} - steps: - - uses: actions/checkout@v4 - - uses: azure/setup-helm@v4 - - run: helm package --app-version 2.0.0 --version 2.0.0 . - - uses: actions/upload-artifact@v4 - with: - name: helm-chart - path: ./chart/*.tgz - if-no-files-found: error - retention-days: 1 - - helm-publish: - name: Put the Helm chart to the GitHub pages branch - runs-on: ubuntu-latest - needs: [helm-pack] - 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 - run: | - helm repo index \ - --url https://${{ github.actor }}.github.io/${{ github.event.repository.name }}/helm-charts/ \ - --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 - - name: Commit and push the changes - run: | - git add 'helm-charts/*' index.html - git commit -m "Add the helm chart" - git push origin gh-pages diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7f6035c5..f1aadba3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -121,6 +121,53 @@ jobs: docker.io/tarampampam/webhook-tester:${{ steps.slug.outputs.version-major }}.${{ steps.slug.outputs.version-minor }} docker.io/tarampampam/webhook-tester:${{ steps.slug.outputs.version-major }} + helm-pack: + name: Pack the Helm chart + runs-on: ubuntu-latest + defaults: {run: {working-directory: ./chart}} + steps: + - uses: actions/checkout@v4 + - uses: azure/setup-helm@v4 + - {uses: gacts/github-slug@v1, id: slug} + - run: | + helm package \ + --app-version "${{ steps.slug.outputs.version }}" \ + --version "${{ steps.slug.outputs.version }}" . + - uses: actions/upload-artifact@v4 + with: + name: helm-chart + path: ./chart/*.tgz + if-no-files-found: error + retention-days: 1 + + helm-publish: + name: Put the Helm chart to the GitHub pages branch + runs-on: ubuntu-latest + needs: [helm-pack] + 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 + run: | + helm repo index \ + --url https://${{ github.actor }}.github.io/${{ github.event.repository.name }}/helm-charts/ \ + --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 + - name: Commit and push the changes + run: | + git add 'helm-charts/*' index.html + git commit -m "Helm chart release" + git push origin gh-pages + deploy-on-render: name: Deploy on Render runs-on: ubuntu-latest diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 25a34d3c..a411e00b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -55,8 +55,6 @@ jobs: - run: helm dependency update . - run: helm template . > /dev/null - run: helm lint --strict . - - uses: stackrox/kube-linter-action@v1 - with: {directory: .} lint-and-test-backend: name: Test and lint the backend