mirror of
https://github.com/kubernetes-sigs/external-dns.git
synced 2026-04-19 06:51:26 +02:00
Bumps the dev-dependencies group with 5 updates: | Package | From | To | | --- | --- | --- | | [actions/checkout](https://github.com/actions/checkout) | `6.0.1` | `6.0.2` | | [actions/setup-go](https://github.com/actions/setup-go) | `6.3.0` | `6.4.0` | | [renovatebot/github-action](https://github.com/renovatebot/github-action) | `46.1.4` | `46.1.7` | | [actions/setup-python](https://github.com/actions/setup-python) | `6.0.0` | `6.2.0` | | [azure/setup-helm](https://github.com/azure/setup-helm) | `4.3.1` | `5.0.0` | Updates `actions/checkout` from 6.0.1 to 6.0.2 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v6.0.1...de0fac2e4500dabe0009e67214ff5f5447ce83dd) Updates `actions/setup-go` from 6.3.0 to 6.4.0 - [Release notes](https://github.com/actions/setup-go/releases) - [Commits](https://github.com/actions/setup-go/compare/v6.3.0...v6.4.0) Updates `renovatebot/github-action` from 46.1.4 to 46.1.7 - [Release notes](https://github.com/renovatebot/github-action/releases) - [Changelog](https://github.com/renovatebot/github-action/blob/main/CHANGELOG.md) - [Commits](0b17c4eb90...3633cede7d) Updates `actions/setup-python` from 6.0.0 to 6.2.0 - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/v6...a309ff8b426b58ec0e2a45f0f869d46889d02405) Updates `azure/setup-helm` from 4.3.1 to 5.0.0 - [Release notes](https://github.com/azure/setup-helm/releases) - [Changelog](https://github.com/Azure/setup-helm/blob/main/CHANGELOG.md) - [Commits](1a275c3b69...dda3372f75) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: 6.0.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: dev-dependencies - dependency-name: actions/setup-go dependency-version: 6.4.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: dev-dependencies - dependency-name: renovatebot/github-action dependency-version: 46.1.7 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: dev-dependencies - dependency-name: actions/setup-python dependency-version: 6.2.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: dev-dependencies - dependency-name: azure/setup-helm dependency-version: 5.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: dev-dependencies ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
159 lines
5.3 KiB
YAML
159 lines
5.3 KiB
YAML
name: Release Chart
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
paths:
|
|
- "charts/external-dns/Chart.yaml"
|
|
|
|
concurrency:
|
|
group: chart-release
|
|
cancel-in-progress: false
|
|
|
|
permissions: {}
|
|
|
|
jobs:
|
|
release:
|
|
name: Release
|
|
if: github.repository == 'kubernetes-sigs/external-dns'
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Install YQ
|
|
uses: action-stars/install-tool-from-github-release@1fa61c3bea52eca3bcdb1f5c961a3b113fe7fa54 # v0.2.6
|
|
with:
|
|
github_token: ${{ github.token }}
|
|
owner: mikefarah
|
|
repository: yq
|
|
extract: false
|
|
filename_format: "{name}_{os}_{arch}"
|
|
check_command: yq --version
|
|
version: latest
|
|
|
|
- name: Install MDQ
|
|
uses: action-stars/install-tool-from-github-release@1fa61c3bea52eca3bcdb1f5c961a3b113fe7fa54 # v0.2.6
|
|
with:
|
|
github_token: ${{ github.token }}
|
|
owner: yshavit
|
|
repository: mdq
|
|
arch_amd64: x64
|
|
filename_format: "{name}-{os}-{arch}.{ext}"
|
|
check_command: mdq --version
|
|
version: latest
|
|
|
|
- name: Get chart version
|
|
id: chart_version
|
|
run: |
|
|
set -euo pipefail
|
|
chart_version="$(grep -Po "(?<=^version: ).+" charts/external-dns/Chart.yaml)"
|
|
echo "version=${chart_version}" >> $GITHUB_OUTPUT
|
|
|
|
- name: Get changelog entry
|
|
id: changelog_reader
|
|
uses: mindsers/changelog-reader-action@32aa5b4c155d76c94e4ec883a223c947b2f02656 # v2.2.3
|
|
with:
|
|
path: charts/external-dns/CHANGELOG.md
|
|
version: "v${{ steps.chart_version.outputs.version }}"
|
|
|
|
- name: Process changelog
|
|
id: changelog
|
|
run: |
|
|
set -euo pipefail
|
|
|
|
package_dir="./.cr-release-packages"
|
|
mkdir -p "${package_dir}"
|
|
|
|
release_notes_file="RELEASE.md"
|
|
release_notes_path="./charts/external-dns/${release_notes_file}"
|
|
|
|
cat <<"EOF" > "${release_notes_path}"
|
|
${{ steps.changelog_reader.outputs.changes }}
|
|
EOF
|
|
|
|
added="$(mdq --output plain '# Added | -' <"${release_notes_path}" || true)"
|
|
changed="$(mdq --output plain '# Changed | -' <"${release_notes_path}" || true)"
|
|
deprecated="$(mdq --output plain '# Deprecated | -' <"${release_notes_path}" || true)"
|
|
removed="$(mdq --output plain '# Removed | -' <"${release_notes_path}" || true)"
|
|
fixed="$(mdq --output plain '# Fixed | -' <"${release_notes_path}" || true)"
|
|
security="$(mdq --output plain '# Security | -' <"${release_notes_path}" || true)"
|
|
|
|
changes_path="./charts/external-dns/changes.txt"
|
|
rm -f "${changes_path}"
|
|
|
|
old_ifs="${IFS}"
|
|
IFS=$'\n'
|
|
|
|
for item in ${added}; do
|
|
printf -- '- kind: added\n description: "%s"\n' "${item%.*}." >> "${changes_path}"
|
|
done
|
|
|
|
for item in ${changed}; do
|
|
printf -- '- kind: changed\n description: "%s"\n' "${item%.*}." >> "${changes_path}"
|
|
done
|
|
|
|
for item in ${deprecated}; do
|
|
printf -- '- kind: deprecated\n description: "%s"\n' "${item%.*}." >> "${changes_path}"
|
|
done
|
|
|
|
for item in ${removed}; do
|
|
printf -- '- kind: removed\n description: "%s"\n' "${item%.*}." >> "${changes_path}"
|
|
done
|
|
|
|
for item in ${fixed}; do
|
|
printf -- '- kind: fixed\n description: "%s"\n' "${item%.*}." >> "${changes_path}"
|
|
done
|
|
|
|
for item in ${security}; do
|
|
printf -- '- kind: security\n description: "%s"\n' "${item%.*}." >> "${changes_path}"
|
|
done
|
|
|
|
IFS="${old_ifs}"
|
|
|
|
if [[ -f "${changes_path}" ]]; then
|
|
changes="$(cat "${changes_path}")" yq eval --inplace '.annotations["artifacthub.io/changes"] |= strenv(changes)' ./charts/external-dns/Chart.yaml
|
|
rm -f "${changes_path}"
|
|
fi
|
|
|
|
echo "release_notes_file=${release_notes_file}" >> "${GITHUB_OUTPUT}"
|
|
|
|
- name: Install Artifact Hub CLI
|
|
uses: action-stars/install-tool-from-github-release@1fa61c3bea52eca3bcdb1f5c961a3b113fe7fa54 # v0.2.6
|
|
with:
|
|
github_token: ${{ github.token }}
|
|
owner: artifacthub
|
|
repository: hub
|
|
name: ah
|
|
check_command: ah version
|
|
version: latest
|
|
|
|
- name: Run Artifact Hub lint
|
|
run: ah lint --kind helm --path ./charts/external-dns || exit 1
|
|
|
|
- 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@dda3372f752e03dde6b3237bc9431cdc2f7a02a2 # v5.0.0
|
|
with:
|
|
version: latest
|
|
|
|
- name: Run chart-releaser
|
|
uses: helm/chart-releaser-action@cae68fefc6b5f367a0275617c9f83181ba54714f # v1.7.0
|
|
env:
|
|
CR_TOKEN: "${{ github.token }}"
|
|
CR_RELEASE_NAME_TEMPLATE: "external-dns-helm-chart-{{ .Version }}"
|
|
CR_RELEASE_NOTES_FILE: "${{ steps.changelog.outputs.release_notes_file }}"
|
|
CR_MAKE_RELEASE_LATEST: "false"
|