commit c14f83659ae4622ef83df1d812de4829e12d0872 Author: Wolfgang Hottgenroth Date: Wed Jan 22 12:48:51 2025 +0100 initial diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..be15e62 --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,36 @@ +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] + build: + image: plugins/kaniko + settings: + repo: quay.io/wollud1969/k8s-admin-helper + registry: quay.io + tags: + - latest + - ${CI_COMMIT_TAG} + username: + from_secret: quay_username + password: + from_secret: quay_password + dockerfile: Dockerfile + when: + - event: [tag] diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..0fd32ee --- /dev/null +++ b/Dockerfile @@ -0,0 +1,4 @@ +FROM alpine:latest + +RUN apk add --no-cache kubectl gpg +