mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-19 16:46: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:
parent
cf960c1360
commit
ffbac01086
1 changed files with 3 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue