Skip to content

Commit 611f4b5

Browse files
committed
chore: Add check for missing Alpine CHECKSUM
1 parent 3bfbca7 commit 611f4b5

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Check Alpine CHECKSUM
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- ".github/workflows/missing-checksum.yml"
7+
- "**/alpine*/Dockerfile"
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
15+
- name: Count number of Alpine Dockersfiles without CHECKSUM
16+
run: |
17+
if [ "$(find -path *alpine*/Dockerfile -exec grep -l CHECKSUM=\"\" {} \; | wc -l)" == 0 ]; then
18+
exit 0
19+
else
20+
# echo "::error file=FILENAME,line=15,col=22::Missing pre-built checksum"
21+
exit 1
22+
fi

0 commit comments

Comments
 (0)