4 Commits

Author SHA1 Message Date
21c0bcfe77 adjust scanner
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2024-08-21 14:32:36 +02:00
343fc43db5 woodpecker script
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
2024-08-20 19:04:41 +02:00
7d735c28ee stage 2024-08-20 14:55:03 +02:00
cabe27b484 indent 2024-08-20 14:50:54 +02:00
2 changed files with 24 additions and 2 deletions

View File

@ -1,5 +1,4 @@
stages:
- check
- build
variables:

23
.woodpecker.yml Normal file
View File

@ -0,0 +1,23 @@
steps:
build:
image: plugins/kaniko
settings:
repo: ${FORGE_NAME}/${CI_REPO}
registry:
from_secret: container_registry
tags: latest,${CI_COMMIT_SHA},${CI_COMMIT_TAG}
username:
from_secret: container_registry_username
password:
from_secret: container_registry_password
dockerfile: Dockerfile
when:
- event: [push, tag]
scan_image:
image: aquasec/trivy
commands:
- trivy image $FORGE_NAME/$CI_REPO:$CI_COMMIT_SHA --ignore-unfixed --quiet --exit-code 1
when:
- event: [push, tag]