From 21e3914d100794482f64d0aaaf99c744940291fe Mon Sep 17 00:00:00 2001 From: Antoine TANZILLI Date: Fri, 11 Dec 2020 22:23:23 +0100 Subject: [PATCH] chore(ci): add release action --- .github/workflows/release.yml | 30 +++++++++++++++++++ README.md | 2 +- .../dnscrypt-proxy/.helmignore | 0 .../dnscrypt-proxy/Chart.yaml | 0 .../dnscrypt-proxy/templates}/_helpers.tpl | 0 .../dnscrypt-proxy/templates}/configmap.yaml | 0 .../dnscrypt-proxy/templates}/deployment.yml | 0 .../templates}/service-tcp.yaml | 0 .../templates}/service-udp.yaml | 0 .../templates}/tests/test-dns-proxy.yaml | 0 .../dnscrypt-proxy/values.yaml | 0 11 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/release.yml rename .helmignore => charts/dnscrypt-proxy/.helmignore (100%) rename Chart.yaml => charts/dnscrypt-proxy/Chart.yaml (100%) rename {templates => charts/dnscrypt-proxy/templates}/_helpers.tpl (100%) rename {templates => charts/dnscrypt-proxy/templates}/configmap.yaml (100%) rename {templates => charts/dnscrypt-proxy/templates}/deployment.yml (100%) rename {templates => charts/dnscrypt-proxy/templates}/service-tcp.yaml (100%) rename {templates => charts/dnscrypt-proxy/templates}/service-udp.yaml (100%) rename {templates => charts/dnscrypt-proxy/templates}/tests/test-dns-proxy.yaml (100%) rename values.yaml => charts/dnscrypt-proxy/values.yaml (100%) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..a2c39ee --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,30 @@ +name: Release Charts + +on: + push: + branches: + - main + +jobs: + release: + runs-on: ubuntu-latest + 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: Install Helm + uses: azure/setup-helm@v1 + with: + version: v3.4.1 + + - name: Run chart-releaser + uses: helm/chart-releaser-action@v1.1.0 + env: + CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" diff --git a/README.md b/README.md index 7921ef9..8084e7c 100644 --- a/README.md +++ b/README.md @@ -12,4 +12,4 @@ TODO - Tailzip/dnscrypt-proxy-helm-chart: [MIT License](./LICENSE) - klutchell/dnscrypt-proxy: [MIT License](https://github.com/klutchell/dnscrypt-proxy/blob/master/LICENSE) -- DNSCrypt/dnscrypt-proxy: [ISC License](https://github.com/DNSCrypt/dnscrypt-proxy/blob/master/LICENSE) \ No newline at end of file +- DNSCrypt/dnscrypt-proxy: [ISC License](https://github.com/DNSCrypt/dnscrypt-proxy/blob/master/LICENSE) diff --git a/.helmignore b/charts/dnscrypt-proxy/.helmignore similarity index 100% rename from .helmignore rename to charts/dnscrypt-proxy/.helmignore diff --git a/Chart.yaml b/charts/dnscrypt-proxy/Chart.yaml similarity index 100% rename from Chart.yaml rename to charts/dnscrypt-proxy/Chart.yaml diff --git a/templates/_helpers.tpl b/charts/dnscrypt-proxy/templates/_helpers.tpl similarity index 100% rename from templates/_helpers.tpl rename to charts/dnscrypt-proxy/templates/_helpers.tpl diff --git a/templates/configmap.yaml b/charts/dnscrypt-proxy/templates/configmap.yaml similarity index 100% rename from templates/configmap.yaml rename to charts/dnscrypt-proxy/templates/configmap.yaml diff --git a/templates/deployment.yml b/charts/dnscrypt-proxy/templates/deployment.yml similarity index 100% rename from templates/deployment.yml rename to charts/dnscrypt-proxy/templates/deployment.yml diff --git a/templates/service-tcp.yaml b/charts/dnscrypt-proxy/templates/service-tcp.yaml similarity index 100% rename from templates/service-tcp.yaml rename to charts/dnscrypt-proxy/templates/service-tcp.yaml diff --git a/templates/service-udp.yaml b/charts/dnscrypt-proxy/templates/service-udp.yaml similarity index 100% rename from templates/service-udp.yaml rename to charts/dnscrypt-proxy/templates/service-udp.yaml diff --git a/templates/tests/test-dns-proxy.yaml b/charts/dnscrypt-proxy/templates/tests/test-dns-proxy.yaml similarity index 100% rename from templates/tests/test-dns-proxy.yaml rename to charts/dnscrypt-proxy/templates/tests/test-dns-proxy.yaml diff --git a/values.yaml b/charts/dnscrypt-proxy/values.yaml similarity index 100% rename from values.yaml rename to charts/dnscrypt-proxy/values.yaml