Add GitHub Actions (#211)

* Add 'run-tests' action to run specs
* Add 'push-to-registry' action to push image to Docker Hub
This commit is contained in:
Riccardo Graziosi
2023-04-16 15:53:05 +02:00
committed by GitHub
parent 1e6eb17af5
commit 60b0919ce6
9 changed files with 170 additions and 68 deletions

View File

@@ -35,7 +35,7 @@ COPY . ${APP_ROOT}/
# Compile assets if production
# SECRET_KEY_BASE=1 is a workaround (see https://github.com/rails/rails/issues/32947)
RUN if [ "$ENVIRONMENT" = "production" ]; then RAILS_ENV=development bundle exec rake webpacker:compile; fi
RUN if [ "$ENVIRONMENT" = "production" ]; then SECRET_KEY_BASE=1 RAILS_ENV=production bundle exec rake assets:precompile; fi
###
### Dev stage ###