From 3daff064e8aea53355ede960245e3d81d466158b Mon Sep 17 00:00:00 2001 From: Alexander Weidt Date: Thu, 3 Sep 2020 16:13:01 +0200 Subject: [PATCH 1/2] add helm releaser action --- .github/workflows/helm-release.yml | 50 +++++++++++++++++++ index.yaml | 28 ----------- .../activemq-artemis}/.helmignore | 0 .../activemq-artemis}/Chart.yaml | 4 +- .../activemq-artemis}/OWNERS | 0 .../activemq-artemis}/templates/NOTES.txt | 0 .../activemq-artemis}/templates/_helpers.tpl | 0 .../templates/configmap.yaml | 0 .../templates/master-configmap.yaml | 0 .../templates/master-service.yaml | 0 .../templates/master-statefulset.yaml | 0 .../activemq-artemis}/templates/pvc.yaml | 0 .../activemq-artemis}/templates/secrets.yaml | 0 .../activemq-artemis}/templates/service.yaml | 0 .../templates/servicemonitor.yaml | 0 .../templates/slave-configmap.yaml | 0 .../templates/slave-service.yaml | 0 .../templates/slave-statefulset.yaml | 0 .../templates/tests/test-amqp-protocol.yaml | 0 .../tests/test-cluster-formation.yaml | 0 .../templates/tests/test-core-protocol.yaml | 0 .../activemq-artemis}/values.yaml | 0 22 files changed, 52 insertions(+), 30 deletions(-) create mode 100644 .github/workflows/helm-release.yml delete mode 100755 index.yaml rename {activemq-artemis => stable/activemq-artemis}/.helmignore (100%) rename {activemq-artemis => stable/activemq-artemis}/Chart.yaml (83%) rename {activemq-artemis => stable/activemq-artemis}/OWNERS (100%) rename {activemq-artemis => stable/activemq-artemis}/templates/NOTES.txt (100%) rename {activemq-artemis => stable/activemq-artemis}/templates/_helpers.tpl (100%) rename {activemq-artemis => stable/activemq-artemis}/templates/configmap.yaml (100%) rename {activemq-artemis => stable/activemq-artemis}/templates/master-configmap.yaml (100%) rename {activemq-artemis => stable/activemq-artemis}/templates/master-service.yaml (100%) rename {activemq-artemis => stable/activemq-artemis}/templates/master-statefulset.yaml (100%) rename {activemq-artemis => stable/activemq-artemis}/templates/pvc.yaml (100%) rename {activemq-artemis => stable/activemq-artemis}/templates/secrets.yaml (100%) rename {activemq-artemis => stable/activemq-artemis}/templates/service.yaml (100%) rename {activemq-artemis => stable/activemq-artemis}/templates/servicemonitor.yaml (100%) rename {activemq-artemis => stable/activemq-artemis}/templates/slave-configmap.yaml (100%) rename {activemq-artemis => stable/activemq-artemis}/templates/slave-service.yaml (100%) rename {activemq-artemis => stable/activemq-artemis}/templates/slave-statefulset.yaml (100%) rename {activemq-artemis => stable/activemq-artemis}/templates/tests/test-amqp-protocol.yaml (100%) rename {activemq-artemis => stable/activemq-artemis}/templates/tests/test-cluster-formation.yaml (100%) rename {activemq-artemis => stable/activemq-artemis}/templates/tests/test-core-protocol.yaml (100%) rename {activemq-artemis => stable/activemq-artemis}/values.yaml (100%) diff --git a/.github/workflows/helm-release.yml b/.github/workflows/helm-release.yml new file mode 100644 index 0000000..b83d604 --- /dev/null +++ b/.github/workflows/helm-release.yml @@ -0,0 +1,50 @@ +# This is a basic workflow to help you get started with Actions + +name: Release Charts + +# Controls when the action will run. Triggers the workflow on push or pull request +# events but only for the master branch +on: + push: + branches: + - master + paths: + - "stable/activemq-artemis/**" + - ".github/workflows/helm-release.yml" + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + + # https://github.com/helm/chart-releaser-action/issues/13#issuecomment-602058369 + - name: Fetch history + run: git fetch --prune --unshallow + + - name: Configure Git + run: | + git config user.name "$GITHUB_ACTOR" + git config user.email "$GITHUB_ACTOR@users.noreply.github.com" + + #- name: Copy chart to charts folder + # run: | + # mkdir charts + # cp -r activemq-artemis charts/activemq-artemis + + #- name: show folders + # run: ls -R + + - name: Run chart-releaser + uses: helm/chart-releaser-action@v1.0.0 + env: + CR_TOKEN: "${{ secrets.CR_TOKEN }}" + with: + charts_repo_url: https://bigga94.github.io/activemq-artemis-helm + charts_dir: stable diff --git a/index.yaml b/index.yaml deleted file mode 100755 index 8fbd7a1..0000000 --- a/index.yaml +++ /dev/null @@ -1,28 +0,0 @@ -apiVersion: v1 -entries: - activemq-artemis: - - created: 2017-03-08T16:30:14.419179945-03:00 - description: a multi-protocol, embeddable, very high performance, clustered, asynchronous - messaging system. - digest: 9749d3332e2163bb441d4fffe75184f179c4515dfadcd6eec2dc58c3f52a175c - engine: gotpl - home: https://activemq.apache.org/artemis/ - icon: https://activemq.apache.org/artemis/images/activemq-logo.png - keywords: - - activemq - - artemis - - messaging - - mom - - amqp - - jms - maintainers: - - email: victor.romero@gmail.com - name: Victor Romero - name: activemq-artemis - sources: - - https://github.com/kubernetes/charts - - https://github.com/apache/activemq-artemis - urls: - - https://vromero.github.io/charts/activemq-artemis-0.0.1.tgz - version: 0.0.1 -generated: 2017-03-08T16:30:14.418574063-03:00 diff --git a/activemq-artemis/.helmignore b/stable/activemq-artemis/.helmignore similarity index 100% rename from activemq-artemis/.helmignore rename to stable/activemq-artemis/.helmignore diff --git a/activemq-artemis/Chart.yaml b/stable/activemq-artemis/Chart.yaml similarity index 83% rename from activemq-artemis/Chart.yaml rename to stable/activemq-artemis/Chart.yaml index c3c3af9..5b4278e 100644 --- a/activemq-artemis/Chart.yaml +++ b/stable/activemq-artemis/Chart.yaml @@ -1,5 +1,5 @@ name: activemq-artemis -version: 0.0.1 +version: 0.0.2 appVersion: 2.6.2 description: a multi-protocol, embeddable, very high performance, clustered, asynchronous messaging system. keywords: @@ -11,7 +11,7 @@ keywords: - jms - mqtt home: https://activemq.apache.org/artemis/ -icon: https://activemq.apache.org/artemis/images/activemq-logo.png +icon: https://activemq.apache.org/assets/img/activemq_logo_icon.png sources: - https://github.com/kubernetes/charts - https://github.com/apache/activemq-artemis diff --git a/activemq-artemis/OWNERS b/stable/activemq-artemis/OWNERS similarity index 100% rename from activemq-artemis/OWNERS rename to stable/activemq-artemis/OWNERS diff --git a/activemq-artemis/templates/NOTES.txt b/stable/activemq-artemis/templates/NOTES.txt similarity index 100% rename from activemq-artemis/templates/NOTES.txt rename to stable/activemq-artemis/templates/NOTES.txt diff --git a/activemq-artemis/templates/_helpers.tpl b/stable/activemq-artemis/templates/_helpers.tpl similarity index 100% rename from activemq-artemis/templates/_helpers.tpl rename to stable/activemq-artemis/templates/_helpers.tpl diff --git a/activemq-artemis/templates/configmap.yaml b/stable/activemq-artemis/templates/configmap.yaml similarity index 100% rename from activemq-artemis/templates/configmap.yaml rename to stable/activemq-artemis/templates/configmap.yaml diff --git a/activemq-artemis/templates/master-configmap.yaml b/stable/activemq-artemis/templates/master-configmap.yaml similarity index 100% rename from activemq-artemis/templates/master-configmap.yaml rename to stable/activemq-artemis/templates/master-configmap.yaml diff --git a/activemq-artemis/templates/master-service.yaml b/stable/activemq-artemis/templates/master-service.yaml similarity index 100% rename from activemq-artemis/templates/master-service.yaml rename to stable/activemq-artemis/templates/master-service.yaml diff --git a/activemq-artemis/templates/master-statefulset.yaml b/stable/activemq-artemis/templates/master-statefulset.yaml similarity index 100% rename from activemq-artemis/templates/master-statefulset.yaml rename to stable/activemq-artemis/templates/master-statefulset.yaml diff --git a/activemq-artemis/templates/pvc.yaml b/stable/activemq-artemis/templates/pvc.yaml similarity index 100% rename from activemq-artemis/templates/pvc.yaml rename to stable/activemq-artemis/templates/pvc.yaml diff --git a/activemq-artemis/templates/secrets.yaml b/stable/activemq-artemis/templates/secrets.yaml similarity index 100% rename from activemq-artemis/templates/secrets.yaml rename to stable/activemq-artemis/templates/secrets.yaml diff --git a/activemq-artemis/templates/service.yaml b/stable/activemq-artemis/templates/service.yaml similarity index 100% rename from activemq-artemis/templates/service.yaml rename to stable/activemq-artemis/templates/service.yaml diff --git a/activemq-artemis/templates/servicemonitor.yaml b/stable/activemq-artemis/templates/servicemonitor.yaml similarity index 100% rename from activemq-artemis/templates/servicemonitor.yaml rename to stable/activemq-artemis/templates/servicemonitor.yaml diff --git a/activemq-artemis/templates/slave-configmap.yaml b/stable/activemq-artemis/templates/slave-configmap.yaml similarity index 100% rename from activemq-artemis/templates/slave-configmap.yaml rename to stable/activemq-artemis/templates/slave-configmap.yaml diff --git a/activemq-artemis/templates/slave-service.yaml b/stable/activemq-artemis/templates/slave-service.yaml similarity index 100% rename from activemq-artemis/templates/slave-service.yaml rename to stable/activemq-artemis/templates/slave-service.yaml diff --git a/activemq-artemis/templates/slave-statefulset.yaml b/stable/activemq-artemis/templates/slave-statefulset.yaml similarity index 100% rename from activemq-artemis/templates/slave-statefulset.yaml rename to stable/activemq-artemis/templates/slave-statefulset.yaml diff --git a/activemq-artemis/templates/tests/test-amqp-protocol.yaml b/stable/activemq-artemis/templates/tests/test-amqp-protocol.yaml similarity index 100% rename from activemq-artemis/templates/tests/test-amqp-protocol.yaml rename to stable/activemq-artemis/templates/tests/test-amqp-protocol.yaml diff --git a/activemq-artemis/templates/tests/test-cluster-formation.yaml b/stable/activemq-artemis/templates/tests/test-cluster-formation.yaml similarity index 100% rename from activemq-artemis/templates/tests/test-cluster-formation.yaml rename to stable/activemq-artemis/templates/tests/test-cluster-formation.yaml diff --git a/activemq-artemis/templates/tests/test-core-protocol.yaml b/stable/activemq-artemis/templates/tests/test-core-protocol.yaml similarity index 100% rename from activemq-artemis/templates/tests/test-core-protocol.yaml rename to stable/activemq-artemis/templates/tests/test-core-protocol.yaml diff --git a/activemq-artemis/values.yaml b/stable/activemq-artemis/values.yaml similarity index 100% rename from activemq-artemis/values.yaml rename to stable/activemq-artemis/values.yaml From c14882b228df45687b0933f6230991ba86e9ce6f Mon Sep 17 00:00:00 2001 From: Alexander Weidt Date: Thu, 3 Sep 2020 16:50:25 +0200 Subject: [PATCH 2/2] change charts repo url --- .github/workflows/helm-release.yml | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/.github/workflows/helm-release.yml b/.github/workflows/helm-release.yml index b83d604..1252eb6 100644 --- a/.github/workflows/helm-release.yml +++ b/.github/workflows/helm-release.yml @@ -32,19 +32,11 @@ jobs: run: | git config user.name "$GITHUB_ACTOR" git config user.email "$GITHUB_ACTOR@users.noreply.github.com" - - #- name: Copy chart to charts folder - # run: | - # mkdir charts - # cp -r activemq-artemis charts/activemq-artemis - - #- name: show folders - # run: ls -R - name: Run chart-releaser uses: helm/chart-releaser-action@v1.0.0 env: CR_TOKEN: "${{ secrets.CR_TOKEN }}" with: - charts_repo_url: https://bigga94.github.io/activemq-artemis-helm + charts_repo_url: https://vromero.github.io/activemq-artemis-helm/ charts_dir: stable