feat(container): update image ghcr.io/maxmind/geoipupdate to v7.1.0 #4982
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | |
name: Helm Release Differ | |
on: | |
pull_request: | |
branches: ["main"] | |
paths: ["k8s/**/helm-release.yaml"] | |
env: | |
BOT_USERNAME: "rust84[bot]" | |
KUBERNETES_DIR: k8s/ | |
jobs: | |
changed-files: | |
name: Detect File Changes | |
runs-on: ubuntu-latest | |
outputs: | |
matrix: ${{ steps.set-matrix.outputs.matrix }} | |
steps: | |
- name: Generate Token | |
uses: actions/create-github-app-token@v1 | |
id: app-token | |
with: | |
app-id: "${{ secrets.RUST84_APP_ID }}" | |
private-key: "${{ secrets.RUST84_APP_PRIVATE_KEY }}" | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
token: "${{ steps.app-token.outputs.token }}" | |
- name: Get changed files | |
id: changed-files | |
uses: tj-actions/changed-files@4edd678ac3f81e2dc578756871e4d00c19191daf # v45.0.4 | |
with: | |
json: true | |
files: | | |
k8s/**/helm-release.yaml | |
- id: set-matrix | |
run: echo "matrix={\"file\":${{ steps.changed-files.outputs.all_changed_files }}}" >> "${GITHUB_OUTPUT}" | |
helm-release-differ: | |
name: Diff on Helm Releases | |
runs-on: ubuntu-latest | |
needs: [changed-files] | |
strategy: | |
matrix: ${{ fromJSON(needs.changed-files.outputs.matrix) }} | |
steps: | |
- name: Generate Token | |
uses: actions/create-github-app-token@v1 | |
id: app-token | |
with: | |
app-id: ${{ secrets.RUST84_APP_ID }} | |
private-key: ${{ secrets.RUST84_APP_PRIVATE_KEY }} | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
token: "${{ steps.app-token.outputs.token }}" | |
- name: Checkout default branch | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
token: "${{ steps.app-token.outputs.token }}" | |
ref: "${{ github.event.repository.default_branch }}" | |
path: default | |
- name: Setup Homebrew | |
uses: Homebrew/actions/setup-homebrew@master | |
- name: Setup Tools | |
run: | | |
brew install helm homeport/tap/dyff kustomize yq | |
- name: Diff | |
id: diff | |
run: | | |
npm install zx@8.1.4 yaml | |
diff=$(npx zx@8.1.4 ./.github/scripts/helmReleaseDiff.mjs \ | |
--current-release "default/${{ matrix.file }}" \ | |
--incoming-release "${{ matrix.file }}" \ | |
--kubernetes-dir ${{ env.KUBERNETES_DIR }}) | |
echo "diff<<EOF" >> "${GITHUB_OUTPUT}" | |
echo "${diff}" >> "${GITHUB_OUTPUT}" | |
echo "EOF" >> "${GITHUB_OUTPUT}" | |
- name: Find Comment | |
uses: peter-evans/find-comment@3eae4d37986fb5a8592848f6a574fdf654e61f9e # v3.1.0 | |
id: find-comment | |
with: | |
issue-number: "${{ github.event.pull_request.number }}" | |
comment-author: ${{ env.BOT_USERNAME }} | |
body-includes: ${{ matrix.file }} | |
- name: Create or update comment | |
if: ${{ always() && steps.diff.outputs.diff != '' }} | |
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043 # v4.0.0 | |
with: | |
token: ${{ steps.app-token.outputs.token }} | |
comment-id: ${{ steps.find-comment.outputs.comment-id }} | |
issue-number: ${{ github.event.pull_request.number }} | |
body: | | |
Helm Release: `${{ matrix.file }}` | |
``` | |
${{ steps.diff.outputs.diff }} | |
``` | |
edit-mode: replace |