2022-04-13 15:31:36 +00:00
|
|
|
pipeline:
|
2023-01-25 17:27:14 +00:00
|
|
|
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"
|
2023-03-14 22:20:13 +00:00
|
|
|
- "RAILS_GROUPS=assets RAILS_MASTER_KEY=nada bundle exec rails assets:precompile assets:clean"
|
2023-01-25 17:27:14 +00:00
|
|
|
- "git add assets && git commit -m \"[skip ci] JS\" || true"
|
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- "rails"
|
|
|
|
- "panel.sutty.nl"
|
|
|
|
path:
|
|
|
|
include:
|
|
|
|
- "app/assets/**/*"
|
2023-03-14 22:11:18 +00:00
|
|
|
- "app/javascript/**/*"
|
2023-01-25 17:27:14 +00:00
|
|
|
- "package.json"
|
|
|
|
- "yarn.lock"
|
2022-04-13 15:31:36 +00:00
|
|
|
publish:
|
2023-03-14 22:15:26 +00:00
|
|
|
image: "plugins/docker"
|
2022-04-13 15:31:36 +00:00
|
|
|
settings:
|
2023-03-14 22:15:26 +00:00
|
|
|
registry: "registry.nulo.in"
|
|
|
|
username: "sutty"
|
|
|
|
repo: "registry.nulo.in/sutty/panel"
|
2022-04-13 15:31:36 +00:00
|
|
|
tags:
|
2023-03-14 22:15:26 +00:00
|
|
|
- "${ALPINE_VERSION}-${RUBY_VERSION}.${RUBY_PATCH}"
|
|
|
|
- "latest"
|
2022-04-13 15:31:36 +00:00
|
|
|
build_args:
|
2023-03-14 22:15:26 +00:00
|
|
|
- "RUBY_VERSION=${RUBY_VERSION}"
|
|
|
|
- "RUBY_PATCH=${RUBY_PATCH}"
|
|
|
|
- "ALPINE_VERSION=${ALPINE_VERSION}"
|
|
|
|
- "BASE_IMAGE=registry.nulo.in/sutty/rails"
|
2022-04-13 15:31:36 +00:00
|
|
|
purge: false
|
|
|
|
secrets:
|
2023-03-14 22:15:26 +00:00
|
|
|
- "docker_password"
|
2022-04-13 15:31:36 +00:00
|
|
|
when:
|
2022-04-13 15:37:13 +00:00
|
|
|
branch:
|
2023-03-14 22:15:26 +00:00
|
|
|
- "rails"
|
|
|
|
- "panel.sutty.nl"
|
|
|
|
event: "push"
|
2023-03-14 22:17:16 +00:00
|
|
|
path:
|
|
|
|
include:
|
|
|
|
- "Dockerfile"
|
|
|
|
- ".dockerignore"
|
2022-04-13 15:31:36 +00:00
|
|
|
matrix:
|
|
|
|
include:
|
2023-03-14 22:15:26 +00:00
|
|
|
- ALPINE_VERSION: "3.14.8"
|
|
|
|
RUBY_VERSION: "2.7"
|
|
|
|
RUBY_PATCH: "6"
|