From d67c42dc274b25275087c1ac9d096a497320615b Mon Sep 17 00:00:00 2001 From: "Jonathan S. Katz" Date: Wed, 22 Sep 2021 12:07:31 -0400 Subject: [PATCH 1/2] Ensure installers reference latest PGO version These were still referencing 5.0.1 when 5.0.2 is available. --- helm/install/templates/manager.yaml | 2 +- helm/install/values.yaml | 2 +- kustomize/install/bases/kustomization.yaml | 2 +- kustomize/install/bases/manager/manager.yaml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/helm/install/templates/manager.yaml b/helm/install/templates/manager.yaml index 3979c656..4ef37853 100644 --- a/helm/install/templates/manager.yaml +++ b/helm/install/templates/manager.yaml @@ -29,7 +29,7 @@ spec: - name: RELATED_IMAGE_PGBOUNCER value: "registry.developers.crunchydata.com/crunchydata/crunchy-pgbouncer:centos8-1.15-2" - name: RELATED_IMAGE_PGEXPORTER - value: "registry.developers.crunchydata.com/crunchydata/crunchy-postgres-exporter:ubi8-5.0.1-0" + value: "registry.developers.crunchydata.com/crunchydata/crunchy-postgres-exporter:ubi8-5.0.2-0" {{- if .Values.singleNamespace }} - name: PGO_TARGET_NAMESPACE valueFrom: { fieldRef: { apiVersion: v1, fieldPath: metadata.namespace } } diff --git a/helm/install/values.yaml b/helm/install/values.yaml index 6fa13862..b0c901b9 100644 --- a/helm/install/values.yaml +++ b/helm/install/values.yaml @@ -2,7 +2,7 @@ ## Provide image repository and tag image: repository: registry.developers.crunchydata.com/crunchydata - tag: ubi8-5.0.1-0 + tag: ubi8-5.0.2-0 ## Install in default or single namespace mode singleNamespace: false diff --git a/kustomize/install/bases/kustomization.yaml b/kustomize/install/bases/kustomization.yaml index fc3fc03e..8af1de45 100644 --- a/kustomize/install/bases/kustomization.yaml +++ b/kustomize/install/bases/kustomization.yaml @@ -11,4 +11,4 @@ bases: images: - name: postgres-operator newName: registry.developers.crunchydata.com/crunchydata/postgres-operator - newTag: ubi8-5.0.1-0 + newTag: ubi8-5.0.2-0 diff --git a/kustomize/install/bases/manager/manager.yaml b/kustomize/install/bases/manager/manager.yaml index e8e4d94d..b1ddb432 100644 --- a/kustomize/install/bases/manager/manager.yaml +++ b/kustomize/install/bases/manager/manager.yaml @@ -22,7 +22,7 @@ spec: - name: RELATED_IMAGE_PGBOUNCER value: "registry.developers.crunchydata.com/crunchydata/crunchy-pgbouncer:centos8-1.15-2" - name: RELATED_IMAGE_PGEXPORTER - value: "registry.developers.crunchydata.com/crunchydata/crunchy-postgres-exporter:ubi8-5.0.1-0" + value: "registry.developers.crunchydata.com/crunchydata/crunchy-postgres-exporter:ubi8-5.0.2-0" securityContext: allowPrivilegeEscalation: false readOnlyRootFilesystem: true From 037e697e3cd6702454e5cada13bc36a55af2daa8 Mon Sep 17 00:00:00 2001 From: Mathieu Parent Date: Fri, 24 Sep 2021 10:46:28 +0200 Subject: [PATCH 2/2] Release helm charts with chart-releaser --- .github/workflows/release.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..393e3ca1 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,32 @@ +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.7.0 + + - name: Run chart-releaser + uses: helm/chart-releaser-action@v1.2.1 + with: + charts_dir: helm + env: + CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"