diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..f3ceacb2 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,38 @@ +name: CI +on: + pull_request: + branches: [ master ] + workflow_dispatch: + +jobs: + build: + 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.0 + + - name: Helm Lint + run: helm lint $(ls -1 | grep -v -e terraform -e charts -e package_all.sh -e docker -e index.yaml -e README.md -e release.sh -e index.html) + + - name: Helm Package + run: | + for chart in $(ls -1 | grep -v -e terraform -e charts -e package_all.sh -e docker -e index.yaml -e README.md -e release.sh -e index.html); do + helm package -d charts $chart + done + + - name: Helm Repo Index + run: | + helm repo index charts --url https://$(echo $GITHUB_REPOSITORY | cut -d/ -f1).github.io/$(echo $GITHUB_REPOSITORY | cut -d/ -f2)/charts + cat charts/index.yaml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..beaec18e --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,27 @@ +name: Release +on: + push: + branches: [ master ] + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Install Helm + uses: azure/setup-helm@v1 + with: + version: v3.4.0 + + - name: Helm Lint + run: helm lint $(ls -1 | grep -v -e terraform -e charts -e package_all.sh -e docker -e index.yaml -e README.md -e release.sh -e index.html) + + - name: Release Helm Repo on Pages + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + run: ./release.sh diff --git a/edge-caiasoft/Chart.yaml b/edge-caiasoft/Chart.yaml index 4c5f7368..108317a7 100644 --- a/edge-caiasoft/Chart.yaml +++ b/edge-caiasoft/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: edge-caiasoft description: A Helm chart for Kubernetes diff --git a/edge-connexion/Chart.yaml b/edge-connexion/Chart.yaml index 987cb96b..c989c763 100644 --- a/edge-connexion/Chart.yaml +++ b/edge-connexion/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: edge-connexion description: A Helm chart for Kubernetes diff --git a/edge-dematic/Chart.yaml b/edge-dematic/Chart.yaml index 7ebe76eb..0a1db291 100644 --- a/edge-dematic/Chart.yaml +++ b/edge-dematic/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: edge-dematic description: A Helm chart for Kubernetes diff --git a/edge-ea-data-export/Chart.yaml b/edge-ea-data-export/Chart.yaml index f521ce29..fbf352e6 100644 --- a/edge-ea-data-export/Chart.yaml +++ b/edge-ea-data-export/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: edge-ea-data-export description: A Helm chart for Kubernetes diff --git a/edge-ncip/Chart.yaml b/edge-ncip/Chart.yaml index 6508730e..5c9cc919 100644 --- a/edge-ncip/Chart.yaml +++ b/edge-ncip/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: edge-ncip description: A Helm chart for Kubernetes diff --git a/edge-oai-pmh/Chart.yaml b/edge-oai-pmh/Chart.yaml index e0845762..aa79f2f5 100644 --- a/edge-oai-pmh/Chart.yaml +++ b/edge-oai-pmh/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: edge-oai-pmh description: A Helm chart for Kubernetes diff --git a/edge-orders/Chart.yaml b/edge-orders/Chart.yaml index 62b31f68..6b9c96db 100644 --- a/edge-orders/Chart.yaml +++ b/edge-orders/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: edge-orders description: A Helm chart for Kubernetes diff --git a/edge-patron/Chart.yaml b/edge-patron/Chart.yaml index f328ae69..e161c9b6 100644 --- a/edge-patron/Chart.yaml +++ b/edge-patron/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: edge-patron description: A Helm chart for Kubernetes diff --git a/edge-rtac/Chart.yaml b/edge-rtac/Chart.yaml index 7f6c807e..b4dddd16 100644 --- a/edge-rtac/Chart.yaml +++ b/edge-rtac/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: edge-rtac description: A Helm chart for Kubernetes diff --git a/edge-sip2/Chart.yaml b/edge-sip2/Chart.yaml index 206d8963..dd02fe7b 100644 --- a/edge-sip2/Chart.yaml +++ b/edge-sip2/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: edge-sip2 description: A Helm chart for Kubernetes diff --git a/mod-aes/Chart.yaml b/mod-aes/Chart.yaml index 619c6bfa..37f4931a 100644 --- a/mod-aes/Chart.yaml +++ b/mod-aes/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: mod-aes description: A Helm chart for Kubernetes diff --git a/mod-agreements/Chart.yaml b/mod-agreements/Chart.yaml index b208d10d..0bfd7f4a 100644 --- a/mod-agreements/Chart.yaml +++ b/mod-agreements/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: mod-agreements description: A Helm chart for Kubernetes diff --git a/mod-audit/Chart.yaml b/mod-audit/Chart.yaml index 3e1840f3..3a423215 100644 --- a/mod-audit/Chart.yaml +++ b/mod-audit/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: mod-audit description: A Helm chart for Kubernetes diff --git a/mod-authtoken/Chart.yaml b/mod-authtoken/Chart.yaml index 4af1584c..e6e8a91b 100644 --- a/mod-authtoken/Chart.yaml +++ b/mod-authtoken/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: mod-authtoken description: A Helm chart for Folio mod-authtoken diff --git a/mod-calendar/Chart.yaml b/mod-calendar/Chart.yaml index aa142c3c..7f88383b 100644 --- a/mod-calendar/Chart.yaml +++ b/mod-calendar/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: mod-calendar description: A Helm chart mod-calendar for Kubernetes diff --git a/mod-circulation-storage/Chart.yaml b/mod-circulation-storage/Chart.yaml index 45430f14..a440a0e6 100644 --- a/mod-circulation-storage/Chart.yaml +++ b/mod-circulation-storage/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: mod-circulation-storage description: A Helm chart for Kubernetes diff --git a/mod-circulation/Chart.yaml b/mod-circulation/Chart.yaml index 0b9a221a..951de429 100644 --- a/mod-circulation/Chart.yaml +++ b/mod-circulation/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: mod-circulation description: A Helm chart Folio mod-circulation for Kubernetes diff --git a/mod-codex-ekb/Chart.yaml b/mod-codex-ekb/Chart.yaml index 6d510ee2..71fb1f89 100644 --- a/mod-codex-ekb/Chart.yaml +++ b/mod-codex-ekb/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: mod-codex-ekb description: A Helm chart for Kubernetes diff --git a/mod-codex-inventory/Chart.yaml b/mod-codex-inventory/Chart.yaml index ac288873..8afb7d96 100644 --- a/mod-codex-inventory/Chart.yaml +++ b/mod-codex-inventory/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: mod-codex-inventory description: A Helm chart for Kubernetes diff --git a/mod-codex-mux/Chart.yaml b/mod-codex-mux/Chart.yaml index e9194335..3539bb50 100644 --- a/mod-codex-mux/Chart.yaml +++ b/mod-codex-mux/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: mod-codex-mux description: A Helm chart for Kubernetes diff --git a/mod-configuration/Chart.yaml b/mod-configuration/Chart.yaml index 6b66db35..90c7f094 100644 --- a/mod-configuration/Chart.yaml +++ b/mod-configuration/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: mod-configuration description: A Helm chart mod-configuration for Kubernetes diff --git a/mod-copycat/Chart.yaml b/mod-copycat/Chart.yaml index 8bb9ad3e..13937dc1 100644 --- a/mod-copycat/Chart.yaml +++ b/mod-copycat/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: mod-copycat description: A Helm chart for Kubernetes diff --git a/mod-courses/Chart.yaml b/mod-courses/Chart.yaml index e44fbf20..d7974fc5 100644 --- a/mod-courses/Chart.yaml +++ b/mod-courses/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: mod-courses description: A Helm chart for Kubernetes diff --git a/mod-data-export-spring/Chart.yaml b/mod-data-export-spring/Chart.yaml index 91da03b5..0f7e3672 100644 --- a/mod-data-export-spring/Chart.yaml +++ b/mod-data-export-spring/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: mod-data-export-spring description: A Helm chart for Kubernetes diff --git a/mod-data-export-worker/Chart.yaml b/mod-data-export-worker/Chart.yaml index 5a3bd3c7..ca236573 100644 --- a/mod-data-export-worker/Chart.yaml +++ b/mod-data-export-worker/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: mod-data-export-worker description: A Helm chart for Kubernetes diff --git a/mod-data-export/Chart.yaml b/mod-data-export/Chart.yaml index 059c7836..40ffa2c1 100644 --- a/mod-data-export/Chart.yaml +++ b/mod-data-export/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: mod-data-export description: A Helm chart for Kubernetes diff --git a/mod-data-import-converter-storage/Chart.yaml b/mod-data-import-converter-storage/Chart.yaml index 831adae5..9a2cafc1 100644 --- a/mod-data-import-converter-storage/Chart.yaml +++ b/mod-data-import-converter-storage/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: mod-data-import-converter-storage description: A Helm chart for Kubernetes diff --git a/mod-data-import/Chart.yaml b/mod-data-import/Chart.yaml index f4cf9703..8dd2c748 100644 --- a/mod-data-import/Chart.yaml +++ b/mod-data-import/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: mod-data-import description: A Helm chart for Kubernetes diff --git a/mod-ebsconet/Chart.yaml b/mod-ebsconet/Chart.yaml index 33c3df34..1ad8d551 100644 --- a/mod-ebsconet/Chart.yaml +++ b/mod-ebsconet/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: mod-ebsconet description: A Helm chart for Kubernetes diff --git a/mod-email/Chart.yaml b/mod-email/Chart.yaml index 0e028d6a..746831b9 100644 --- a/mod-email/Chart.yaml +++ b/mod-email/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: mod-email description: A Helm chart mod-email for Kubernetes diff --git a/mod-erm-usage-harvester/Chart.yaml b/mod-erm-usage-harvester/Chart.yaml index 0d83bdb6..e9834905 100644 --- a/mod-erm-usage-harvester/Chart.yaml +++ b/mod-erm-usage-harvester/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: mod-erm-usage-harvester description: A Helm chart for Kubernetes diff --git a/mod-erm-usage/Chart.yaml b/mod-erm-usage/Chart.yaml index c4442fdb..45f69363 100644 --- a/mod-erm-usage/Chart.yaml +++ b/mod-erm-usage/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: mod-erm-usage description: A Helm chart for Kubernetes diff --git a/mod-event-config/Chart.yaml b/mod-event-config/Chart.yaml index dc5fedba..0b72e6ec 100644 --- a/mod-event-config/Chart.yaml +++ b/mod-event-config/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: mod-event-config description: A Helm chart mod-event-config for Kubernetes diff --git a/mod-feesfines/Chart.yaml b/mod-feesfines/Chart.yaml index cb7098b8..bc7b7d4f 100644 --- a/mod-feesfines/Chart.yaml +++ b/mod-feesfines/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: mod-feesfines description: A Helm chart for Kubernetes diff --git a/mod-finance-storage/Chart.yaml b/mod-finance-storage/Chart.yaml index 6ad69ea3..476b445e 100644 --- a/mod-finance-storage/Chart.yaml +++ b/mod-finance-storage/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: mod-finance-storage description: A Helm chart for Kubernetes diff --git a/mod-finance/Chart.yaml b/mod-finance/Chart.yaml index e1c892af..c425341c 100644 --- a/mod-finance/Chart.yaml +++ b/mod-finance/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: mod-finance description: A Helm chart for Kubernetes diff --git a/mod-gobi/Chart.yaml b/mod-gobi/Chart.yaml index d0fa5967..117dba9f 100644 --- a/mod-gobi/Chart.yaml +++ b/mod-gobi/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: mod-gobi description: A Helm chart for Kubernetes diff --git a/mod-graphql/Chart.yaml b/mod-graphql/Chart.yaml index 1526320d..d4514e90 100644 --- a/mod-graphql/Chart.yaml +++ b/mod-graphql/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: mod-graphql description: A Helm chart for Kubernetes diff --git a/mod-inn-reach/Chart.yaml b/mod-inn-reach/Chart.yaml index d76e8f52..53b6ad1e 100644 --- a/mod-inn-reach/Chart.yaml +++ b/mod-inn-reach/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: mod-inn-reach description: A Helm chart for Kubernetes diff --git a/mod-inventory-storage/Chart.yaml b/mod-inventory-storage/Chart.yaml index 4fbf3f83..b1f6f21f 100644 --- a/mod-inventory-storage/Chart.yaml +++ b/mod-inventory-storage/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: mod-inventory-storage description: A Helm chart mod-inventory-storage for Kubernetes diff --git a/mod-inventory/Chart.yaml b/mod-inventory/Chart.yaml index 81d368da..507d55b5 100644 --- a/mod-inventory/Chart.yaml +++ b/mod-inventory/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: mod-inventory description: A Helm chart mod-invertory for Kubernetes diff --git a/mod-invoice-storage/Chart.yaml b/mod-invoice-storage/Chart.yaml index 618688a8..5426657d 100644 --- a/mod-invoice-storage/Chart.yaml +++ b/mod-invoice-storage/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: mod-invoice-storage description: A Helm chart for Kubernetes diff --git a/mod-invoice/Chart.yaml b/mod-invoice/Chart.yaml index 0faa8ca2..4fd06b0d 100644 --- a/mod-invoice/Chart.yaml +++ b/mod-invoice/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: mod-invoice description: A Helm chart for Kubernetes diff --git a/mod-kb-ebsco-java/Chart.yaml b/mod-kb-ebsco-java/Chart.yaml index 6712993f..081580e6 100644 --- a/mod-kb-ebsco-java/Chart.yaml +++ b/mod-kb-ebsco-java/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: mod-kb-ebsco-java description: A Helm chart for Kubernetes diff --git a/mod-ldp/Chart.yaml b/mod-ldp/Chart.yaml index b028d8c4..178ea22b 100644 --- a/mod-ldp/Chart.yaml +++ b/mod-ldp/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: mod-ldp description: A Helm chart for Kubernetes diff --git a/mod-licenses/Chart.yaml b/mod-licenses/Chart.yaml index 9c83c38a..74fd836a 100644 --- a/mod-licenses/Chart.yaml +++ b/mod-licenses/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: mod-licenses description: A Helm chart for Kubernetes diff --git a/mod-login-saml/Chart.yaml b/mod-login-saml/Chart.yaml index eb58ed85..072bcce2 100644 --- a/mod-login-saml/Chart.yaml +++ b/mod-login-saml/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: mod-login-saml description: A Helm chart for Kubernetes diff --git a/mod-login/Chart.yaml b/mod-login/Chart.yaml index 75b957f3..a28a9e3a 100644 --- a/mod-login/Chart.yaml +++ b/mod-login/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: mod-login description: A Helm chart for Kubernetes diff --git a/mod-marccat/Chart.yaml b/mod-marccat/Chart.yaml index fef882be..5ec251b1 100644 --- a/mod-marccat/Chart.yaml +++ b/mod-marccat/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: mod-marccat description: A Helm chart for Kubernetes diff --git a/mod-ncip/Chart.yaml b/mod-ncip/Chart.yaml index 436ba69b..973d2407 100644 --- a/mod-ncip/Chart.yaml +++ b/mod-ncip/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: mod-ncip description: A Helm chart for Kubernetes diff --git a/mod-notes/Chart.yaml b/mod-notes/Chart.yaml index afe45dd6..27c9ba57 100644 --- a/mod-notes/Chart.yaml +++ b/mod-notes/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: mod-notes description: A Helm chart for Kubernetes diff --git a/mod-notify/Chart.yaml b/mod-notify/Chart.yaml index ce644b8e..29dfed4b 100644 --- a/mod-notify/Chart.yaml +++ b/mod-notify/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: mod-notify description: A Helm chart for Kubernetes diff --git a/mod-oai-pmh/Chart.yaml b/mod-oai-pmh/Chart.yaml index 1c9d4032..871aa38c 100644 --- a/mod-oai-pmh/Chart.yaml +++ b/mod-oai-pmh/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: mod-oai-pmh description: A Helm chart for Kubernetes diff --git a/mod-orders-storage/Chart.yaml b/mod-orders-storage/Chart.yaml index 5e777c23..123c6192 100644 --- a/mod-orders-storage/Chart.yaml +++ b/mod-orders-storage/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: mod-orders-storage description: A Helm chart for Kubernetes diff --git a/mod-orders/Chart.yaml b/mod-orders/Chart.yaml index 838e253d..76f4f73c 100644 --- a/mod-orders/Chart.yaml +++ b/mod-orders/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: mod-orders description: A Helm chart for Kubernetes diff --git a/mod-organizations-storage/Chart.yaml b/mod-organizations-storage/Chart.yaml index f1907da6..faa14a1b 100644 --- a/mod-organizations-storage/Chart.yaml +++ b/mod-organizations-storage/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: mod-organizations-storage description: A Helm chart for Kubernetes diff --git a/mod-organizations/Chart.yaml b/mod-organizations/Chart.yaml index b828822f..d0c60c5e 100644 --- a/mod-organizations/Chart.yaml +++ b/mod-organizations/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: mod-organizations description: A Helm chart for Kubernetes diff --git a/mod-password-validator/Chart.yaml b/mod-password-validator/Chart.yaml index acdb7548..8caf8fa2 100644 --- a/mod-password-validator/Chart.yaml +++ b/mod-password-validator/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: mod-password-validator description: A Helm chart for Kubernetes diff --git a/mod-patron-blocks/Chart.yaml b/mod-patron-blocks/Chart.yaml index c5a112e5..feadcecc 100644 --- a/mod-patron-blocks/Chart.yaml +++ b/mod-patron-blocks/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: mod-patron-blocks description: A Helm chart for Kubernetes diff --git a/mod-patron/Chart.yaml b/mod-patron/Chart.yaml index 9b3468cc..b5696e36 100644 --- a/mod-patron/Chart.yaml +++ b/mod-patron/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: mod-patron description: A Helm chart for Kubernetes diff --git a/mod-permissions/Chart.yaml b/mod-permissions/Chart.yaml index 46a627c7..d7268375 100644 --- a/mod-permissions/Chart.yaml +++ b/mod-permissions/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: mod-permissions description: A Helm chart mod-permissions for Kubernetes diff --git a/mod-pubsub/Chart.yaml b/mod-pubsub/Chart.yaml index 086a4aee..2d2ff189 100644 --- a/mod-pubsub/Chart.yaml +++ b/mod-pubsub/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: mod-pubsub description: A Helm chart for Kubernetes diff --git a/mod-quick-marc/Chart.yaml b/mod-quick-marc/Chart.yaml index e11a5ec8..e8145242 100644 --- a/mod-quick-marc/Chart.yaml +++ b/mod-quick-marc/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: mod-quick-marc description: A Helm chart for Kubernetes diff --git a/mod-remote-storage/Chart.yaml b/mod-remote-storage/Chart.yaml index 44714173..aca27443 100644 --- a/mod-remote-storage/Chart.yaml +++ b/mod-remote-storage/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: mod-remote-storage description: A Helm chart for Kubernetes diff --git a/mod-rtac/Chart.yaml b/mod-rtac/Chart.yaml index 75c636ce..20b65532 100644 --- a/mod-rtac/Chart.yaml +++ b/mod-rtac/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: mod-rtac description: A Helm chart for Kubernetes diff --git a/mod-search/Chart.yaml b/mod-search/Chart.yaml index 8492167e..adfe154c 100644 --- a/mod-search/Chart.yaml +++ b/mod-search/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: mod-search description: A Helm chart for Kubernetes diff --git a/mod-sender/Chart.yaml b/mod-sender/Chart.yaml index 2c59b19e..ecf7f473 100644 --- a/mod-sender/Chart.yaml +++ b/mod-sender/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: mod-sender description: A Helm chart for Kubernetes diff --git a/mod-source-record-manager/Chart.yaml b/mod-source-record-manager/Chart.yaml index 932ba65c..6d622191 100644 --- a/mod-source-record-manager/Chart.yaml +++ b/mod-source-record-manager/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: mod-source-record-manager description: A Helm chart for Kubernetes diff --git a/mod-source-record-storage/Chart.yaml b/mod-source-record-storage/Chart.yaml index c4c1555b..b171ebf9 100644 --- a/mod-source-record-storage/Chart.yaml +++ b/mod-source-record-storage/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: mod-source-record-storage description: A Helm chart for Kubernetes diff --git a/mod-tags/Chart.yaml b/mod-tags/Chart.yaml index 82ef7aba..b8505c21 100644 --- a/mod-tags/Chart.yaml +++ b/mod-tags/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: mod-tags description: A Helm chart for Kubernetes diff --git a/mod-template-engine/Chart.yaml b/mod-template-engine/Chart.yaml index 90f71e3a..5afdad6c 100644 --- a/mod-template-engine/Chart.yaml +++ b/mod-template-engine/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: mod-template-engine description: A Helm chart for Kubernetes diff --git a/mod-user-import/Chart.yaml b/mod-user-import/Chart.yaml index e065dcd4..914af11b 100644 --- a/mod-user-import/Chart.yaml +++ b/mod-user-import/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: mod-user-import description: A Helm chart for Kubernetes diff --git a/mod-users-bl/Chart.yaml b/mod-users-bl/Chart.yaml index b7c12174..d989b4f0 100644 --- a/mod-users-bl/Chart.yaml +++ b/mod-users-bl/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: mod-users-bl description: A Helm chart for Kubernetes diff --git a/mod-users/Chart.yaml b/mod-users/Chart.yaml index 3b8f9960..be959de9 100644 --- a/mod-users/Chart.yaml +++ b/mod-users/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: mod-users description: A Helm chart Folio mod-users for Kubernetes diff --git a/mod-z3950/Chart.yaml b/mod-z3950/Chart.yaml index d10620ad..cfc4acab 100644 --- a/mod-z3950/Chart.yaml +++ b/mod-z3950/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: mod-z3950 description: A Helm chart for Kubernetes diff --git a/okapi/Chart.yaml b/okapi/Chart.yaml index ce93c05a..4739350a 100644 --- a/okapi/Chart.yaml +++ b/okapi/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: okapi description: A Helm chart OKAPI for Kubernetes diff --git a/pgadmin4/Chart.yaml b/pgadmin4/Chart.yaml index 00fd38df..83e781db 100644 --- a/pgadmin4/Chart.yaml +++ b/pgadmin4/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 description: pgAdmin4 is a web based administration tool for PostgreSQL database name: pgadmin4 version: 1.2.30 diff --git a/platform-complete/Chart.yaml b/platform-complete/Chart.yaml index d9d4af28..d7b47b44 100644 --- a/platform-complete/Chart.yaml +++ b/platform-complete/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: platform-complete description: A Helm chart Stripes Platform-complete for Kubernetes diff --git a/platform-core/Chart.yaml b/platform-core/Chart.yaml index 3d19c58c..b52cfa0f 100644 --- a/platform-core/Chart.yaml +++ b/platform-core/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 name: platform-core description: A Helm chart Stripes Platform-core for Kubernetes diff --git a/release.sh b/release.sh new file mode 100755 index 00000000..da8e114d --- /dev/null +++ b/release.sh @@ -0,0 +1,59 @@ +#!/usr/bin/env bash + +set -eu + +repo_uri="https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" +remote_name="origin" +main_branch="master" +target_branch="gh-pages" +build_dir="charts" + +cd "$GITHUB_WORKSPACE" + +git config user.name "$GITHUB_ACTOR" +git config user.email "${GITHUB_ACTOR}@bots.github.com" + +git checkout "$target_branch" || git checkout -b "$target_branch" +git rebase "${remote_name}/${main_branch}" + +git add "$build_dir" + +for chart in $(ls -1 | grep -v -e terraform -e charts -e package_all.sh -e docker -e index.yaml -e README.md -e release.sh -e index.html); do + helm package -d "$build_dir" $chart +done + +helm repo index . --url https://$(echo $GITHUB_REPOSITORY | cut -d/ -f1).github.io/$(echo $GITHUB_REPOSITORY | cut -d/ -f2) +cat << EOF > index.html +

Folio Helm Repository

+ +

Usage

+ +

Example: install okapi

+ +
    +
  1. pirepare values file
  2. +
  3. prepare secrets
  4. +
  5. install via helm into folio namespace
  6. +
+ +
+helm repo add folio https://$(echo $GITHUB_REPOSITORY | cut -d/ -f1).github.io/$(echo $GITHUB_REPOSITORY | cut -d/ -f2)
+helm upgrade --install --wait --atomic --timeout 10m \
+  --create-namespace \
+  --values helm/okapi-values.yaml \
+  --namespace=folio okapi folio/okapi
+
+EOF + +git add "$build_dir" +git add index.yaml +git add index.html + +git commit -m "updated GitHub Pages" +if [ $? -ne 0 ]; then + echo "nothing to commit" + exit 0 +fi + +git remote set-url "$remote_name" "$repo_uri" # includes access token +git push --force-with-lease "$remote_name" "$target_branch"