Compare commits
2 Commits
7124fb5f53
..
v2.2.1
| Author | SHA1 | Date | |
|---|---|---|---|
| 2887ce4476 | |||
| 9e52929d73 |
@@ -5,13 +5,3 @@ repos:
|
||||
- id: ruff
|
||||
args: [--fix, --exit-non-zero-on-fix]
|
||||
- id: ruff-format
|
||||
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: docker-build
|
||||
name: docker build
|
||||
language: system
|
||||
entry: buildah --storage-driver vfs bud -t artifactapi:pre-commit-test .
|
||||
pass_filenames: false
|
||||
files: ^(Dockerfile|\.dockerignore|pyproject\.toml|src/)
|
||||
stages: [pre-commit]
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
when:
|
||||
- event: pull_request
|
||||
|
||||
steps:
|
||||
- name: docker-build
|
||||
image: woodpeckerci/plugin-docker-buildx
|
||||
settings:
|
||||
repo: git.unkin.net/unkin/artifactapi
|
||||
dry_run: true
|
||||
@@ -5,5 +5,5 @@ steps:
|
||||
- name: pre-commit
|
||||
image: git.unkin.net/unkin/almalinux9-base:20260308
|
||||
commands:
|
||||
- dnf install -y buildah
|
||||
- uvx pre-commit run --all-files
|
||||
|
||||
|
||||
Reference in New Issue
Block a user