mirror of
https://0xacab.org/sutty/sutty
synced 2025-02-22 13:31:48 +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:
|
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:
|
publish:
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
settings:
|
settings:
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "sutty",
|
"name": "sutty",
|
||||||
|
"author": "Sutty <hi@sutty.nl>",
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@airbrake/browser": "^1.4.1",
|
"@airbrake/browser": "^1.4.1",
|
||||||
|
|
Loading…
Reference in a new issue