Don't require database in GHA docker workflow check
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
#!/bin/bash -e
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# If running the rails server then create or migrate existing database
|
||||
# if [ "${*}" == "./bin/rails server" ]; then
|
||||
# ./bin/rails db:prepare
|
||||
# fi
|
||||
# Remove a potentially pre-existing server.pid for Rails.
|
||||
rm -f /usr/src/app/tmp/pids/server.pid
|
||||
|
||||
exec "${@}"
|
||||
echo "bundle install..."
|
||||
bundle check || bundle install --jobs 4
|
||||
|
||||
# Then exec the container's main process (what's set as CMD in the Dockerfile).
|
||||
exec "$@"
|
||||
|
||||
Reference in New Issue
Block a user