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

22 lines
672 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"
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:07:59 +00:00
- "apk add dotenv brotli go-task"
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"