fix(container): update image ghcr.io/cloudnative-pg/postgresql to v16.1-12 #1818
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
--- | |
name: "Flux Diff" | |
on: | |
pull_request: | |
branches: ["main"] | |
paths: ["kubernetes/**.yaml"] | |
env: | |
DEBCONF_NONINTERACTIVE_SEEN: "true" | |
DEBIAN_FRONTEND: noninteractive | |
APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE: DontWarn | |
NIX_FLAKE_PATH: ./.github/workflows/resources/nix | |
jobs: | |
flux-diff: | |
name: Flux Diff | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: write | |
strategy: | |
matrix: | |
path: ["kubernetes/kyak", "kubernetes/sol"] | |
resource: ["helmrelease", "kustomization"] | |
steps: | |
- name: Generate Token | |
uses: actions/create-github-app-token@2986852ad836768dfea7781f31828eb3e17990fa # v1.6.2 | |
id: app-token | |
with: | |
app-id: "${{ secrets.BOT_APP_ID }}" | |
private-key: "${{ secrets.BOT_APP_PRIVATE_KEY }}" | |
- name: Checkout | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
with: | |
token: "${{ steps.app-token.outputs.token }}" | |
- name: Install OS Deps | |
shell: bash | |
run: sudo apt-get update && sudo apt-get install -y curl git xz-utils | |
- name: Install Nix | |
uses: cachix/install-nix-action@7ac1ec25491415c381d9b62f0657c7a028df52a7 # v24 | |
with: | |
github_access_token: "${{ steps.app-token.outputs.token }}" | |
- name: Switch to Nix devShell | |
uses: nicknovitski/nix-develop@a2060d116a50b36dfab02280af558e73ab52427d # v1.1.0 | |
with: | |
arguments: "${{ env.NIX_FLAKE_PATH }}" | |
- name: Diff Resources | |
# uses: allenporter/flux-local/action/diff@19bfc6920e8964a479363bc230e6c329120ead02 # 3.2.0 | |
uses: allenporter/flux-local/action/diff@flux-build | |
id: diff | |
with: | |
sources: home-kubernetes | |
path: "${{ matrix.path }}" | |
resource: "${{ matrix.resource }}" | |
- if: ${{ steps.diff.outputs.diff != '' }} | |
name: Add comment | |
uses: mshick/add-pr-comment@7c0890544fb33b0bdd2e59467fbacb62e028a096 # v2.8.1 | |
with: | |
repo-token: "${{ steps.app-token.outputs.token }}" | |
message-id: "${{ github.event.pull_request.number }}/${{ matrix.path }}/${{ matrix.resource }}" | |
message-failure: Diff was not successful | |
message: | | |
```diff | |
${{ steps.diff.outputs.diff }} | |
``` |