drone -> woodpecker

This commit is contained in:
Michael Grote 2023-11-07 15:36:33 +01:00
parent 11cad3a3ab
commit 15f03a20ce
2 changed files with 26 additions and 27 deletions

View file

@ -1,30 +1,11 @@
---
kind: pipeline
type: docker
name: linting
name: docker_build
depends_on:
- lint
steps:
- name: gitleaks
image: plugins/gitleaks
settings:
path: .
when:
event:
exclude:
- tag
- name: hadolint
image: hadolint/hadolint:latest-debian
commands:
- hadolint Dockerfile
---
kind: pipeline
type: docker
name: selfhosted
steps:
- name: docker_build_and_push_selfhosted
docker_build_and_push_selfhosted:
image: thegeeklab/drone-docker-buildx:23
privileged: true
settings:
@ -44,7 +25,7 @@ steps:
- pull_request
- tag
- name: docker_build_and_push_selfhosted_tag
docker_build_and_push_selfhosted_tag:
image: thegeeklab/drone-docker-buildx:23
privileged: true
settings:
@ -59,6 +40,3 @@ steps:
when:
event:
- tag
depends_on: # bezieht sich auf linting pipeline
- linting

21
.woodpecker/lint.yml Normal file
View file

@ -0,0 +1,21 @@
---
kind: pipeline
type: docker
name: linting
steps:
gitleaks:
image: zricethezav/gitleaks:latest
commands:
- gitleaks detect --no-git --verbose --source $CI_WORKSPACE
when:
event:
exclude:
- tag
hadolint:
image: hadolint/hadolint:latest-debian
commands:
- hadolint Dockerfile
when:
event:
exclude:
- tag