We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3bfbca7 + 73f32c4 commit 6149e33Copy full SHA for 6149e33
.github/workflows/missing-checksum.yml
@@ -0,0 +1,20 @@
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
+ git grep -n 'CHECKSUM=""' -- '*alpine*/Dockerfile' | sed -E 's/^([^:]+):([^:]+):\s*/::error file=\1,line=\2::Missing pre-built checksum/'
18
+ if [ "${PIPESTATUS[0]}" -eq 0 ]; then
19
+ exit 1
20
+ fi
0 commit comments