first commit
This commit is contained in:
commit
309253921e
3 changed files with 69 additions and 0 deletions
31
.woodpecker/build.yml
Normal file
31
.woodpecker/build.yml
Normal file
|
@ -0,0 +1,31 @@
|
|||
---
|
||||
depends_on:
|
||||
- lint
|
||||
steps:
|
||||
selfhosted_tag:
|
||||
image: plugins/docker@sha256:2f157400c2cb7de1b309b0f044f119375108218e54d38e1340e00b9f93abdefb
|
||||
settings:
|
||||
dockerfile: Dockerfile
|
||||
repo: registry.mgrote.net/httpd
|
||||
registry: registry.mgrote.net
|
||||
tags:
|
||||
- ${CI_COMMIT_TAG}
|
||||
when:
|
||||
event:
|
||||
- tag
|
||||
|
||||
selfhosted_push:
|
||||
image: plugins/docker@sha256:2f157400c2cb7de1b309b0f044f119375108218e54d38e1340e00b9f93abdefb
|
||||
settings:
|
||||
dockerfile: Dockerfile
|
||||
repo: registry.mgrote.net/httpd
|
||||
registry: registry.mgrote.net
|
||||
tags:
|
||||
- ${CI_COMMIT_SHA:0:8}
|
||||
- ${CI_COMMIT_BRANCH}
|
||||
- latest
|
||||
when:
|
||||
event:
|
||||
exclude:
|
||||
- pull_request
|
||||
- tag
|
35
.woodpecker/lint.yml
Normal file
35
.woodpecker/lint.yml
Normal file
|
@ -0,0 +1,35 @@
|
|||
---
|
||||
steps:
|
||||
gitleaks:
|
||||
image: zricethezav/gitleaks:v8.18.1
|
||||
commands:
|
||||
- gitleaks detect --no-git --verbose --source $CI_WORKSPACE
|
||||
when:
|
||||
event:
|
||||
exclude:
|
||||
- tag
|
||||
|
||||
hadolint:
|
||||
image: pipelinecomponents/hadolint:0.26.0
|
||||
commands:
|
||||
- hadolint Dockerfile
|
||||
when:
|
||||
event:
|
||||
exclude:
|
||||
- tag
|
||||
|
||||
shellcheck:
|
||||
image: registry.mgrote.net/allzweckcontainer:latest
|
||||
commands:
|
||||
- |
|
||||
find . -type f -not -path './.git/*' -not -path './collections/*' -exec file {} \; | while IFS= read -r line; do
|
||||
if echo "$line" | grep -q "shell script"; then
|
||||
file_path=$(echo "$line" | awk -F':' '{print $1}')
|
||||
shellcheck "$file_path"
|
||||
fi
|
||||
done
|
||||
when:
|
||||
event:
|
||||
exclude:
|
||||
- tag
|
||||
...
|
3
Dockerfile
Normal file
3
Dockerfile
Normal file
|
@ -0,0 +1,3 @@
|
|||
FROM httpd:2.4.57-alpine
|
||||
|
||||
RUN apk add --no-cache curl wget
|
Loading…
Reference in a new issue