Compare commits
3 Commits
da6924b55d
...
5347e6840c
Author | SHA1 | Date | |
---|---|---|---|
5347e6840c
|
|||
0094b5611f | |||
bb7fb1eadb |
@@ -27,11 +27,11 @@ jobs:
|
|||||||
- name: Run chart-testing (list-changed)
|
- name: Run chart-testing (list-changed)
|
||||||
id: list-changed
|
id: list-changed
|
||||||
run: |
|
run: |
|
||||||
changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }})
|
changed=$(ct list-changed --target-branch ${{ gitea.event.repository.default_branch }})
|
||||||
if [[ -n "$changed" ]]; then
|
if [[ -n "$changed" ]]; then
|
||||||
echo "changed=true" >> "$GITHUB_OUTPUT"
|
echo "changed=true" >> $GITHUB_OUTPUT
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Run chart-testing (lint)
|
- name: Run chart-testing (lint)
|
||||||
if: steps.list-changed.outputs.changed == 'true'
|
if: steps.list-changed.outputs.changed == 'true'
|
||||||
run: ct lint --target-branch ${{ github.event.repository.default_branch }}
|
run: ct lint --target-branch ${{ gitea.event.repository.default_branch }}
|
37
.gitea/workflows/release-to-harbor.yml
Normal file
37
.gitea/workflows/release-to-harbor.yml
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
name: Release Charts
|
||||||
|
# https://github.com/thpham/helm-oci-charts-releaser
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
paths:
|
||||||
|
- 'charts/**'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
release:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
packages: write
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Configure Git
|
||||||
|
run: |
|
||||||
|
git config user.name "${{ gitea.actor }}"
|
||||||
|
git config user.email "${{ gitea.actor }}@users.noreply.${{ vars.REPOSITORY_HOST }}"
|
||||||
|
|
||||||
|
- name: Run chart-releaser
|
||||||
|
uses: https://github.com/thpham/helm-oci-charts-releaser@v1
|
||||||
|
with:
|
||||||
|
oci_registry: ${{ vars.REGISTRY_HOST }}/v2/helm-charts
|
||||||
|
oci_username: ${{ vars.REGISTRY_USER }}
|
||||||
|
oci_password: ${{ secrets.REGISTRY_SECRET }}
|
||||||
|
gitea_server: ${{ vars.REPOSITORY_HOST }}
|
||||||
|
gitea_token: ${{ secrets.REPOSITORY_TOKEN }}
|
||||||
|
tag_name_pattern: '{chartName}-chart'
|
||||||
|
skip_existing: true
|
@@ -20,7 +20,7 @@ cluster:
|
|||||||
# -- Default image
|
# -- Default image
|
||||||
image:
|
image:
|
||||||
repository: ghcr.io/cloudnative-pg/postgresql
|
repository: ghcr.io/cloudnative-pg/postgresql
|
||||||
tag: "17.4-3-bullseye"
|
tag: "sha256-fe18e4721366d1139fa1ec6f974a658a7f290f77dc51addc8d2f59bd9098d2df.sig"
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
# -- The UID and GID of the postgres user inside the image
|
# -- The UID and GID of the postgres user inside the image
|
||||||
|
Reference in New Issue
Block a user