drone -> woodpecker
This commit is contained in:
parent
7107e3d999
commit
d25febc1a0
2 changed files with 65 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/oxidized-selfmade
|
||||||
|
registry: registry.mgrote.net
|
||||||
|
tags:
|
||||||
|
- ${CI_COMMIT_TAG}
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- tag
|
||||||
|
|
||||||
|
selfhosted_push:
|
||||||
|
image: plugins/docker
|
||||||
|
settings:
|
||||||
|
dockerfile: Dockerfile
|
||||||
|
repo: registry.mgrote.net/oxidized-selfmade
|
||||||
|
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
31
.woodpecker/lint.yml
Normal 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 {} +"
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
exclude:
|
||||||
|
- tag
|
Loading…
Reference in a new issue