From 30901bd705e9fbdc899bfb43090c7fe4143f6665 Mon Sep 17 00:00:00 2001 From: Adrian Gonciarz Date: Mon, 23 May 2022 13:52:56 +0200 Subject: [PATCH] Feat: helm chart repo on gitlab pages (#1566) * chore: rename helm chart directory to charts * feat: add GitHub workflow for building Helm Charts * fix: update Helm Chart release workflow with write-all permissions * fix: update Helm Chart release workflow with proper trunk branch name * chore: rename Helm release workflow --- .github/workflows/helm-chart-release.yml | 26 +++++++++++++++++++ {chart => charts}/selenium-grid/.helmignore | 0 {chart => charts}/selenium-grid/CHANGELOG.md | 0 {chart => charts}/selenium-grid/Chart.yaml | 0 {chart => charts}/selenium-grid/README.md | 0 .../selenium-grid/templates/NOTES.txt | 0 .../selenium-grid/templates/_helpers.tpl | 0 .../templates/chrome-node-deployment.yaml | 0 .../templates/chrome-node-service.yaml | 0 .../templates/distributor-deployment.yaml | 0 .../templates/distributor-service.yaml | 0 .../templates/edge-node-deployment.yaml | 0 .../templates/edge-node-service.yaml | 0 .../templates/event-bus-configmap.yaml | 0 .../templates/event-bus-deployment.yaml | 0 .../templates/event-bus-service.yaml | 0 .../templates/firefox-node-deployment.yaml | 0 .../templates/firefox-node-service.yaml | 0 .../templates/hub-deployment.yaml | 0 .../selenium-grid/templates/hub-service.yaml | 0 .../templates/router-deployment.yaml | 0 .../templates/router-service.yaml | 0 .../templates/session-map-deployment.yaml | 0 .../templates/session-map-service.yaml | 0 .../templates/session-queuer-deployment.yaml | 0 .../templates/session-queuer-service.yaml | 0 {chart => charts}/selenium-grid/values.yaml | 0 27 files changed, 26 insertions(+) create mode 100644 .github/workflows/helm-chart-release.yml rename {chart => charts}/selenium-grid/.helmignore (100%) rename {chart => charts}/selenium-grid/CHANGELOG.md (100%) rename {chart => charts}/selenium-grid/Chart.yaml (100%) rename {chart => charts}/selenium-grid/README.md (100%) rename {chart => charts}/selenium-grid/templates/NOTES.txt (100%) rename {chart => charts}/selenium-grid/templates/_helpers.tpl (100%) rename {chart => charts}/selenium-grid/templates/chrome-node-deployment.yaml (100%) rename {chart => charts}/selenium-grid/templates/chrome-node-service.yaml (100%) rename {chart => charts}/selenium-grid/templates/distributor-deployment.yaml (100%) rename {chart => charts}/selenium-grid/templates/distributor-service.yaml (100%) rename {chart => charts}/selenium-grid/templates/edge-node-deployment.yaml (100%) rename {chart => charts}/selenium-grid/templates/edge-node-service.yaml (100%) rename {chart => charts}/selenium-grid/templates/event-bus-configmap.yaml (100%) rename {chart => charts}/selenium-grid/templates/event-bus-deployment.yaml (100%) rename {chart => charts}/selenium-grid/templates/event-bus-service.yaml (100%) rename {chart => charts}/selenium-grid/templates/firefox-node-deployment.yaml (100%) rename {chart => charts}/selenium-grid/templates/firefox-node-service.yaml (100%) rename {chart => charts}/selenium-grid/templates/hub-deployment.yaml (100%) rename {chart => charts}/selenium-grid/templates/hub-service.yaml (100%) rename {chart => charts}/selenium-grid/templates/router-deployment.yaml (100%) rename {chart => charts}/selenium-grid/templates/router-service.yaml (100%) rename {chart => charts}/selenium-grid/templates/session-map-deployment.yaml (100%) rename {chart => charts}/selenium-grid/templates/session-map-service.yaml (100%) rename {chart => charts}/selenium-grid/templates/session-queuer-deployment.yaml (100%) rename {chart => charts}/selenium-grid/templates/session-queuer-service.yaml (100%) rename {chart => charts}/selenium-grid/values.yaml (100%) diff --git a/.github/workflows/helm-chart-release.yml b/.github/workflows/helm-chart-release.yml new file mode 100644 index 000000000..6ef822823 --- /dev/null +++ b/.github/workflows/helm-chart-release.yml @@ -0,0 +1,26 @@ +name: Release Charts + +on: + push: + branches: + - trunk + +jobs: + release: + runs-on: ubuntu-latest + permissions: write-all + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Configure Git + run: | + git config user.name "$GITHUB_ACTOR" + git config user.email "$GITHUB_ACTOR@users.noreply.github.com" + + - name: Run chart-releaser + uses: helm/chart-releaser-action@v1.1.0 + env: + CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" diff --git a/chart/selenium-grid/.helmignore b/charts/selenium-grid/.helmignore similarity index 100% rename from chart/selenium-grid/.helmignore rename to charts/selenium-grid/.helmignore diff --git a/chart/selenium-grid/CHANGELOG.md b/charts/selenium-grid/CHANGELOG.md similarity index 100% rename from chart/selenium-grid/CHANGELOG.md rename to charts/selenium-grid/CHANGELOG.md diff --git a/chart/selenium-grid/Chart.yaml b/charts/selenium-grid/Chart.yaml similarity index 100% rename from chart/selenium-grid/Chart.yaml rename to charts/selenium-grid/Chart.yaml diff --git a/chart/selenium-grid/README.md b/charts/selenium-grid/README.md similarity index 100% rename from chart/selenium-grid/README.md rename to charts/selenium-grid/README.md diff --git a/chart/selenium-grid/templates/NOTES.txt b/charts/selenium-grid/templates/NOTES.txt similarity index 100% rename from chart/selenium-grid/templates/NOTES.txt rename to charts/selenium-grid/templates/NOTES.txt diff --git a/chart/selenium-grid/templates/_helpers.tpl b/charts/selenium-grid/templates/_helpers.tpl similarity index 100% rename from chart/selenium-grid/templates/_helpers.tpl rename to charts/selenium-grid/templates/_helpers.tpl diff --git a/chart/selenium-grid/templates/chrome-node-deployment.yaml b/charts/selenium-grid/templates/chrome-node-deployment.yaml similarity index 100% rename from chart/selenium-grid/templates/chrome-node-deployment.yaml rename to charts/selenium-grid/templates/chrome-node-deployment.yaml diff --git a/chart/selenium-grid/templates/chrome-node-service.yaml b/charts/selenium-grid/templates/chrome-node-service.yaml similarity index 100% rename from chart/selenium-grid/templates/chrome-node-service.yaml rename to charts/selenium-grid/templates/chrome-node-service.yaml diff --git a/chart/selenium-grid/templates/distributor-deployment.yaml b/charts/selenium-grid/templates/distributor-deployment.yaml similarity index 100% rename from chart/selenium-grid/templates/distributor-deployment.yaml rename to charts/selenium-grid/templates/distributor-deployment.yaml diff --git a/chart/selenium-grid/templates/distributor-service.yaml b/charts/selenium-grid/templates/distributor-service.yaml similarity index 100% rename from chart/selenium-grid/templates/distributor-service.yaml rename to charts/selenium-grid/templates/distributor-service.yaml diff --git a/chart/selenium-grid/templates/edge-node-deployment.yaml b/charts/selenium-grid/templates/edge-node-deployment.yaml similarity index 100% rename from chart/selenium-grid/templates/edge-node-deployment.yaml rename to charts/selenium-grid/templates/edge-node-deployment.yaml diff --git a/chart/selenium-grid/templates/edge-node-service.yaml b/charts/selenium-grid/templates/edge-node-service.yaml similarity index 100% rename from chart/selenium-grid/templates/edge-node-service.yaml rename to charts/selenium-grid/templates/edge-node-service.yaml diff --git a/chart/selenium-grid/templates/event-bus-configmap.yaml b/charts/selenium-grid/templates/event-bus-configmap.yaml similarity index 100% rename from chart/selenium-grid/templates/event-bus-configmap.yaml rename to charts/selenium-grid/templates/event-bus-configmap.yaml diff --git a/chart/selenium-grid/templates/event-bus-deployment.yaml b/charts/selenium-grid/templates/event-bus-deployment.yaml similarity index 100% rename from chart/selenium-grid/templates/event-bus-deployment.yaml rename to charts/selenium-grid/templates/event-bus-deployment.yaml diff --git a/chart/selenium-grid/templates/event-bus-service.yaml b/charts/selenium-grid/templates/event-bus-service.yaml similarity index 100% rename from chart/selenium-grid/templates/event-bus-service.yaml rename to charts/selenium-grid/templates/event-bus-service.yaml diff --git a/chart/selenium-grid/templates/firefox-node-deployment.yaml b/charts/selenium-grid/templates/firefox-node-deployment.yaml similarity index 100% rename from chart/selenium-grid/templates/firefox-node-deployment.yaml rename to charts/selenium-grid/templates/firefox-node-deployment.yaml diff --git a/chart/selenium-grid/templates/firefox-node-service.yaml b/charts/selenium-grid/templates/firefox-node-service.yaml similarity index 100% rename from chart/selenium-grid/templates/firefox-node-service.yaml rename to charts/selenium-grid/templates/firefox-node-service.yaml diff --git a/chart/selenium-grid/templates/hub-deployment.yaml b/charts/selenium-grid/templates/hub-deployment.yaml similarity index 100% rename from chart/selenium-grid/templates/hub-deployment.yaml rename to charts/selenium-grid/templates/hub-deployment.yaml diff --git a/chart/selenium-grid/templates/hub-service.yaml b/charts/selenium-grid/templates/hub-service.yaml similarity index 100% rename from chart/selenium-grid/templates/hub-service.yaml rename to charts/selenium-grid/templates/hub-service.yaml diff --git a/chart/selenium-grid/templates/router-deployment.yaml b/charts/selenium-grid/templates/router-deployment.yaml similarity index 100% rename from chart/selenium-grid/templates/router-deployment.yaml rename to charts/selenium-grid/templates/router-deployment.yaml diff --git a/chart/selenium-grid/templates/router-service.yaml b/charts/selenium-grid/templates/router-service.yaml similarity index 100% rename from chart/selenium-grid/templates/router-service.yaml rename to charts/selenium-grid/templates/router-service.yaml diff --git a/chart/selenium-grid/templates/session-map-deployment.yaml b/charts/selenium-grid/templates/session-map-deployment.yaml similarity index 100% rename from chart/selenium-grid/templates/session-map-deployment.yaml rename to charts/selenium-grid/templates/session-map-deployment.yaml diff --git a/chart/selenium-grid/templates/session-map-service.yaml b/charts/selenium-grid/templates/session-map-service.yaml similarity index 100% rename from chart/selenium-grid/templates/session-map-service.yaml rename to charts/selenium-grid/templates/session-map-service.yaml diff --git a/chart/selenium-grid/templates/session-queuer-deployment.yaml b/charts/selenium-grid/templates/session-queuer-deployment.yaml similarity index 100% rename from chart/selenium-grid/templates/session-queuer-deployment.yaml rename to charts/selenium-grid/templates/session-queuer-deployment.yaml diff --git a/chart/selenium-grid/templates/session-queuer-service.yaml b/charts/selenium-grid/templates/session-queuer-service.yaml similarity index 100% rename from chart/selenium-grid/templates/session-queuer-service.yaml rename to charts/selenium-grid/templates/session-queuer-service.yaml diff --git a/chart/selenium-grid/values.yaml b/charts/selenium-grid/values.yaml similarity index 100% rename from chart/selenium-grid/values.yaml rename to charts/selenium-grid/values.yaml