Skip to content

Commit

Permalink
Merge pull request nodejs#1317 from nschonni/missing-checksum
Browse files Browse the repository at this point in the history
chore: Add check for missing Alpine CHECKSUM
  • Loading branch information
nschonni authored Oct 16, 2021
2 parents 3bfbca7 + 73f32c4 commit 6149e33
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/missing-checksum.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
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: |
git grep -n 'CHECKSUM=""' -- '*alpine*/Dockerfile' | sed -E 's/^([^:]+):([^:]+):\s*/::error file=\1,line=\2::Missing pre-built checksum/'
if [ "${PIPESTATUS[0]}" -eq 0 ]; then
exit 1
fi

0 comments on commit 6149e33

Please sign in to comment.