Skip to content

Commit

Permalink
Check for changes to the Gem dependencies only when running in our co…
Browse files Browse the repository at this point in the history
…… (#265)
  • Loading branch information
andrewabrahamowicz authored Sep 13, 2023
1 parent 9946ea2 commit a915b1a
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions docker/build/run.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
#!/bin/bash

sha256sum --check /build.sha256 >/dev/null 2>&1
if [[ $? -ne 0 ]]; then
echo "#####################################################################"
echo "# WARNING! Gemfile dependencies have changed from this container. #"
echo "# Rebuild this container to ensure you are running with the latest #"
echo "# dependencies. #"
echo "#####################################################################"
exit 1
if [[ -f /build.sha256 ]]; then
sha256sum --check /build.sha256 >/dev/null 2>&1
if [[ $? -ne 0 ]]; then
echo "#####################################################################"
echo "# WARNING! Gemfile dependencies have changed from this container. #"
echo "# Rebuild this container to ensure you are running with the latest #"
echo "# dependencies. #"
echo "#####################################################################"
exit 1
fi
fi

case "${1}" in
Expand Down

0 comments on commit a915b1a

Please sign in to comment.