mirror of
https://github.com/Mikaela/cv.git
synced 2025-02-18 06:20:41 +01:00
.gitlab-ci.yml: import from mikaela.github.io
This commit is contained in:
parent
1d9191971f
commit
2b1bed4750
@ -1,12 +1,17 @@
|
|||||||
# from https://gitlab.com/pages/jekyll/-/blob/master/.gitlab-ci.yml
|
image: alpine:latest
|
||||||
image: ruby:latest
|
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
JEKYLL_ENV: production
|
JEKYLL_ENV: production
|
||||||
LC_ALL: C.UTF-8
|
LC_ALL: en_US.utf8
|
||||||
|
TERM: dumb
|
||||||
|
|
||||||
|
cache:
|
||||||
|
paths:
|
||||||
|
- ${PRE_COMMIT_HOME}
|
||||||
|
- ${CI_PROJECT_DIR}/bundle
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- gem install bundler
|
- apk add --no-cache ruby ruby-dev ruby-bundler make gcc g++ musl-dev build-base libffi-dev libxml2-dev
|
||||||
- bundle install
|
- bundle install
|
||||||
|
|
||||||
test:
|
test:
|
||||||
@ -28,3 +33,13 @@ pages:
|
|||||||
- public
|
- public
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
|
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
|
||||||
|
|
||||||
|
gitlab-ci-pre-commit:
|
||||||
|
stage: build
|
||||||
|
before_script:
|
||||||
|
- apk add --no-cache python3 python3-dev py3-pip py3-wheel git gcc musl-dev bash nodejs-current npm ruby ruby-bundler
|
||||||
|
- pip install pre-commit --break-system-packages
|
||||||
|
script:
|
||||||
|
- pre-commit run --all-files --show-diff-on-failure
|
||||||
|
variables:
|
||||||
|
PRE_COMMIT_HOME: ${CI_PROJECT_DIR}/.cache/pre-commit
|
||||||
|
Loading…
x
Reference in New Issue
Block a user