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 }}" 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