diff --git a/.drone.yml b/.woodpecker/build.yml similarity index 63% rename from .drone.yml rename to .woodpecker/build.yml index c4e93bd..2b832d7 100644 --- a/.drone.yml +++ b/.woodpecker/build.yml @@ -1,30 +1,11 @@ --- kind: pipeline type: docker -name: linting - +name: docker_build +depends_on: + - lint steps: - - name: gitleaks - image: plugins/gitleaks - settings: - path: . - when: - event: - exclude: - - tag - - - name: hadolint - image: hadolint/hadolint:latest-debian - commands: - - hadolint Dockerfile - ---- -kind: pipeline -type: docker -name: selfhosted - -steps: - - name: docker_build_and_push_selfhosted + docker_build_and_push_selfhosted: image: thegeeklab/drone-docker-buildx:23 privileged: true settings: @@ -44,7 +25,7 @@ steps: - pull_request - tag - - name: docker_build_and_push_selfhosted_tag + docker_build_and_push_selfhosted_tag: image: thegeeklab/drone-docker-buildx:23 privileged: true settings: @@ -59,6 +40,3 @@ steps: when: event: - tag - -depends_on: # bezieht sich auf linting pipeline - - linting diff --git a/.woodpecker/lint.yml b/.woodpecker/lint.yml new file mode 100644 index 0000000..0fcfd5f --- /dev/null +++ b/.woodpecker/lint.yml @@ -0,0 +1,21 @@ +--- +kind: pipeline +type: docker +name: linting +steps: + gitleaks: + image: zricethezav/gitleaks:latest + commands: + - gitleaks detect --no-git --verbose --source $CI_WORKSPACE + when: + event: + exclude: + - tag + hadolint: + image: hadolint/hadolint:latest-debian + commands: + - hadolint Dockerfile + when: + event: + exclude: + - tag