Skip to content

Detect .dockerignore out-of-sync with git ls-files #3979

Detect .dockerignore out-of-sync with git ls-files

Detect .dockerignore out-of-sync with git ls-files #3979

name: Detect .dockerignore out-of-sync with git ls-files
on:
pull_request:
push:
schedule:
- cron: '0 16 * * 5' # Every Friday 4pm
workflow_dispatch:
jobs:
dockerignore_detect_out_of_sync:
name: Detect .dockerignore out-of-sync with git ls-files
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Check for out-of-sync .dockerignore
run: |-
diff -U0 <(./generate_whitelist_dockerignore_file.sh) .dockerignore