woodpecker script
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
2024-08-20 19:04:41 +02:00
parent 7d735c28ee
commit 343fc43db5

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 --quiet --exit-code 1
when:
- event: [push, tag]