drone -> woodpecker
This commit is contained in:
parent
0dc508f592
commit
40d51a6f1b
2 changed files with 55 additions and 0 deletions
34
.woodpecker/build.yml
Normal file
34
.woodpecker/build.yml
Normal 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/postfix
|
||||
registry: registry.mgrote.net
|
||||
tags:
|
||||
- ${CI_COMMIT_TAG}
|
||||
when:
|
||||
event:
|
||||
- tag
|
||||
|
||||
selfhosted_push:
|
||||
image: plugins/docker
|
||||
settings:
|
||||
dockerfile: Dockerfile
|
||||
repo: registry.mgrote.net/postfix
|
||||
registry: registry.mgrote.net
|
||||
tags:
|
||||
- ${CI_COMMIT_SHA:0:8}
|
||||
- ${CI_COMMIT_BRANCH}
|
||||
- latest
|
||||
when:
|
||||
event:
|
||||
exclude:
|
||||
- pull_request
|
||||
- tag
|
21
.woodpecker/lint.yml
Normal file
21
.woodpecker/lint.yml
Normal 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
|
Loading…
Reference in a new issue