From 343fc43db50eb21fdaa0bea71ef96a9027ddbfab Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Tue, 20 Aug 2024 19:04:41 +0200 Subject: [PATCH] woodpecker script --- .woodpecker.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .woodpecker.yml diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..c9f4827 --- /dev/null +++ b/.woodpecker.yml @@ -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] +