This commit is contained in:
Michael Grote 2023-11-13 10:31:34 +01:00
parent adecb84b18
commit 7bd9669dca
2 changed files with 65 additions and 0 deletions

34
.woodpecker/build.yml Normal file
View File

@ -0,0 +1,34 @@
---
kind: pipeline
type: docker
name: docker_build
depends_on:
- lint
steps:
selfhosted_tag:
image: plugins/docker
settings:
dockerfile: Dockerfile
repo: registry.mgrote.net/nextcloud-cronjob
registry: registry.mgrote.net
tags:
- ${CI_COMMIT_TAG}
when:
event:
- tag
selfhosted_push:
image: plugins/docker
settings:
dockerfile: Dockerfile
repo: registry.mgrote.net/nextcloud-cronjob
registry: registry.mgrote.net
tags:
- ${CI_COMMIT_SHA:0:8}
- ${CI_COMMIT_BRANCH}
- latest
when:
event:
exclude:
- pull_request
- tag

31
.woodpecker/lint.yml Normal file
View File

@ -0,0 +1,31 @@
---
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
shellcheck:
image: koalaman/shellcheck-alpine:stable
commands:
- "find . -name *.sh -exec shellcheck -x {} +"
when:
event:
exclude:
- tag