5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-05-17 11:10:48 +00:00
panel/.gitlab-ci.yml

33 lines
864 B
YAML
Raw Normal View History

image: "gitea.nulo.in/sutty/panel:3.17.3-3.1.4-rails"
2023-04-15 15:23:43 +00:00
variables:
RAILS_ENV: "production"
LC_ALL: "C.UTF-8"
HAINISH: ""
2023-04-15 15:23:43 +00:00
cache:
paths:
- "vendor/ruby"
2024-01-08 18:12:29 +00:00
- "node_modules"
- ".task"
2023-04-15 15:23:43 +00:00
assets:
2023-04-15 15:31:52 +00:00
stage: "build"
2023-04-15 15:23:43 +00:00
before_script:
- "git config --global user.email \"${GIT_USER_EMAIL:-$GITLAB_USER_EMAIL}\""
- "git config --global user.name \"${GIT_USER_NAME:-$GITLAB_USER_NAME}\""
- "git remote set-url --push origin \"https://${GITLAB_USERNAME}:${GITLAB_TOKEN}@${CI_SERVER_HOST}/${CI_PROJECT_PATH}.git\""
2024-01-08 18:28:28 +00:00
- "apk add brotli go-task diffutils"
2023-04-15 15:23:43 +00:00
script:
2024-01-08 18:07:59 +00:00
- "go-task assets"
2023-04-15 15:23:43 +00:00
after_script:
- "git add public && git commit -m \"ci: assets [skip ci]\""
- "git push -o ci.skip"
2024-01-08 20:36:39 +00:00
gem-audit:
stage: "audit"
before_script:
- "gem install bundler-audit"
script:
- "go-task gem-audit"
node-audit:
stage: "audit"
script:
- "go-task node-audit"