feat(push-to-gar-docker): enable docker mirror for buildx on self-hosted runners #98
Workflow file for this run
This file contains hidden or 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: Check catalog-info.yaml for drift | |
on: | |
pull_request: {} | |
permissions: | |
contents: read | |
jobs: | |
check-catalog-info-drift: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Harden the runner (Audit all outbound calls) | |
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0 | |
with: | |
egress-policy: audit | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
persist-credentials: false | |
- name: Setup Go | |
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0 | |
- name: Regenerate catalog-info.yaml | |
run: | | |
make catalog-info.yaml | |
- name: Check for drift | |
run: | | |
if ! git diff --staged --exit-code; then | |
echo "catalog-info.yaml is not up-to-date, please run \`make catalog-info.yaml\` to update this file." | |
exit 1 | |
fi |