chore: Add check for missing Alpine CHECKSUM

This commit is contained in:
Nick Schonning 2020-08-20 23:21:55 -04:00
parent 3bfbca7b95
commit 611f4b5372
No known key found for this signature in database
GPG Key ID: 5DDAAD9C9AAFFD9F
1 changed files with 22 additions and 0 deletions

22
.github/workflows/missing-checksum.yml vendored Normal file
View File

@ -0,0 +1,22 @@
name: Check Alpine CHECKSUM
on:
pull_request:
paths:
- ".github/workflows/missing-checksum.yml"
- "**/alpine*/Dockerfile"
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Count number of Alpine Dockersfiles without CHECKSUM
run: |
if [ "$(find -path *alpine*/Dockerfile -exec grep -l CHECKSUM=\"\" {} \; | wc -l)" == 0 ]; then
exit 0
else
# echo "::error file=FILENAME,line=15,col=22::Missing pre-built checksum"
exit 1
fi