-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: Add check for missing Alpine CHECKSUM #1317
Conversation
d281299
to
83c32bf
Compare
10/alpine3.10/Dockerfile
Outdated
@@ -12,7 +12,7 @@ RUN addgroup -g 1000 node \ | |||
&& case "${alpineArch##*-}" in \ | |||
x86_64) \ | |||
ARCH='x64' \ | |||
CHECKSUM="2afa21473a5eb8f407c52fe3bf08180630f3ac9541d52b98e99dbf4fe79f82d2" \ | |||
CHECKSUM="" \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here for testing, undo before landing
10/alpine3.9/Dockerfile
Outdated
@@ -12,7 +12,7 @@ RUN addgroup -g 1000 node \ | |||
&& case "${alpineArch##*-}" in \ | |||
x86_64) \ | |||
ARCH='x64' \ | |||
CHECKSUM="2afa21473a5eb8f407c52fe3bf08180630f3ac9541d52b98e99dbf4fe79f82d2" \ | |||
CHECKSUM="" \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here for testing, undo before landing
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" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This echo should set comments directly on the affected lines if the right filenames are printed. I've hardcoded the 15 and 22 line/col based off the templates
Thoughts on just throwing (exiting with an error?) in the update script instead? |
a2aa52a
to
1f002d6
Compare
Co-authored-by: Mason Malone <mason.malone@gmail.com>
1f002d6
to
73f32c4
Compare
f66b5b9
to
73f32c4
Compare
The basic check works, but it would be better if the error can be set on the line in the affected file https://docs.github.com/en/actions/reference/workflow-commands-for-github-actions#setting-an-error-message
Opening as a draft so someone better at bash can suggest something to pipe the
find
result in a better manner, or just to loop over the grep results