mirror of
https://github.com/mikaela/mikaela.github.io/
synced 2024-12-25 12:42:34 +01:00
21 lines
547 B
YAML
21 lines
547 B
YAML
|
# SPDX-FileCopyrightText: 2023 Aminda Suomalainen <suomalainen+git@mikaela.info>
|
||
|
#
|
||
|
# SPDX-License-Identifier: CC0-1.0
|
||
|
|
||
|
# Based on https://pre-commit.com
|
||
|
image: python:alpine
|
||
|
gitlab-ci-pre-commit:
|
||
|
stage: build
|
||
|
before_script:
|
||
|
- apk add --no-cache git gcc musl-dev go exiftool
|
||
|
- pip install pre-commit
|
||
|
script:
|
||
|
- pre-commit run --all-files --show-diff-on-failure
|
||
|
variables:
|
||
|
# Remember to gitignore .cache/**
|
||
|
PRE_COMMIT_HOME: ${CI_PROJECT_DIR}/.cache/pre-commit
|
||
|
TERM: dumb
|
||
|
cache:
|
||
|
paths:
|
||
|
- ${PRE_COMMIT_HOME}
|