5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-19 16:16:21 +00:00

ci: arreglos de git

* correr yarn para actualizar el yarn.lock si quedó mal
* commitear yarn.lock
* no commitear si falla la compilación
This commit is contained in:
f 2023-04-15 12:39:26 -03:00
parent cf960c1360
commit ffbac01086

View file

@ -24,10 +24,12 @@ assets:
- "mv config/credentials.yml.enc.ci config/credentials.yml.enc"
- "cp .env.example .env"
- "dotenv bundle install --path=vendor"
- "yarn"
script:
- "dotenv RAILS_ENV=production bundle exec rails webpacker:clobber"
- "dotenv RAILS_ENV=production bundle exec rails assets:precompile"
- "dotenv RAILS_ENV=production bundle exec rails assets:clean"
- "git checkout -B ${CI_COMMIT_BRANCH}"
- "git add yarn.lock public && git commit -m \"ci: assets [skip ci]\""
after_script:
- "git add public && git commit -m \"ci: assets [skip ci]\""
- "git push -o ci.skip"