mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 10:21:42 +00:00
ci: compilar assets cuando cambian las dependencias
This commit is contained in:
parent
3ec546eb82
commit
bbd19f44ae
2 changed files with 18 additions and 0 deletions
|
@ -1,4 +1,21 @@
|
|||
pipeline:
|
||||
assets:
|
||||
image: "registry.nulo.in/sutty/panel:3.14.8-2.7.6"
|
||||
commands:
|
||||
- "apk add python2"
|
||||
- "yarn"
|
||||
- "RAILS_GROUPS=assets bundle install --path=vendor"
|
||||
- "RAILS_GROUPS=assets bundle exec rails assets:precompile assets:clean"
|
||||
- "git add assets && git commit -m \"[skip ci] JS\" || true"
|
||||
when:
|
||||
branch:
|
||||
- "rails"
|
||||
- "panel.sutty.nl"
|
||||
path:
|
||||
include:
|
||||
- "app/assets/**/*"
|
||||
- "package.json"
|
||||
- "yarn.lock"
|
||||
publish:
|
||||
image: plugins/docker
|
||||
settings:
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
"name": "sutty",
|
||||
"author": "Sutty <hi@sutty.nl>",
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@airbrake/browser": "^1.4.1",
|
||||
|
|
Loading…
Reference in a new issue