feat: add assets script function
continuous-integration/drone/push Build is failing Details

This commit is contained in:
decentral1se 2022-05-09 08:02:37 +02:00
parent 968052622f
commit ffe75dc32d
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410
1 changed files with 8 additions and 0 deletions

View File

@ -2,6 +2,14 @@
export ENTRYPOINT_CONF_VERSION=v5
assets() {
export OTP_SECRET=$(cat /run/secrets/otp_secret)
export SECRET_KEY_BASE=$(cat /run/secrets/secret_key_base)
export DB_PASS=$(cat /run/secrets/db_password)
RAILS_ENV=production bundle exec rails assets:precompile
}
migrate() {
export OTP_SECRET=$(cat /run/secrets/otp_secret)
export SECRET_KEY_BASE=$(cat /run/secrets/secret_key_base)