Skip to content

Commit

Permalink
chore: Add check for missing Alpine CHECKSUM
Browse files Browse the repository at this point in the history
  • Loading branch information
nschonni committed Aug 21, 2020
1 parent e74d28a commit d281299
Showing 3 changed files with 24 additions and 2 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/missing-checksum.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Check Alpine CHECKSUM

on:
push:
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
2 changes: 1 addition & 1 deletion 10/alpine3.10/Dockerfile
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ RUN addgroup -g 1000 node \
&& case "${alpineArch##*-}" in \
x86_64) \
ARCH='x64' \
CHECKSUM="2afa21473a5eb8f407c52fe3bf08180630f3ac9541d52b98e99dbf4fe79f82d2" \
CHECKSUM="" \
;; \
*) ;; \
esac \
2 changes: 1 addition & 1 deletion 10/alpine3.9/Dockerfile
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ RUN addgroup -g 1000 node \
&& case "${alpineArch##*-}" in \
x86_64) \
ARCH='x64' \
CHECKSUM="2afa21473a5eb8f407c52fe3bf08180630f3ac9541d52b98e99dbf4fe79f82d2" \
CHECKSUM="" \
;; \
*) ;; \
esac \

0 comments on commit d281299

Please sign in to comment.