From abc55a8eef192d29ac559b26c34d9f002584e598 Mon Sep 17 00:00:00 2001 From: Aaron Riedel Date: Tue, 8 Oct 2024 22:52:25 +0200 Subject: [PATCH] change pipeline to woodpecker --- .drone.yml | 40 ---------------------------------------- .woodpecker.yaml | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+), 40 deletions(-) delete mode 100644 .drone.yml create mode 100644 .woodpecker.yaml diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index bf99c55..0000000 --- a/.drone.yml +++ /dev/null @@ -1,40 +0,0 @@ -kind: pipeline -type: kubernetes -name: deploy -steps: -- name: docker - image: plugins/docker - settings: - registry: - from_secret: REGISTRY_NAME - username: - from_secret: REGISTRY_USER - password: - from_secret: REGISTRY_PASS - repo: git.ar21.de/aaron/ansible-lint - tags: - - latest - - ${DRONE_BUILD_NUMBER} - when: - branch: - - main -- name: docker-build - image: plugins/docker - settings: - registry: - from_secret: REGISTRY_NAME - username: - from_secret: REGISTRY_USER - password: - from_secret: REGISTRY_PASS - repo: git.ar21.de/aaron/ansible-lint - tags: latest - dry_run: true - when: - branch: - exclude: - - main -when: - event: - include: - - push \ No newline at end of file diff --git a/.woodpecker.yaml b/.woodpecker.yaml new file mode 100644 index 0000000..5793e10 --- /dev/null +++ b/.woodpecker.yaml @@ -0,0 +1,39 @@ +steps: +- name: docker + image: woodpeckerci/plugin-docker-buildx + privileged: true + settings: + registry: git.ar21.de + username: + from_secret: REGISTRY_USER + password: + from_secret: REGISTRY_PASS + repo: git.ar21.de/aaron/ansible-lint + tags: + - latest + - ${CI_PIPELINE_NUMBER} + platforms: + - linux/arm64 + - linux/amd64 + when: + - branch: main + event: [push, manual] +- name: docker-build + image: woodpeckerci/plugin-docker-buildx + privileged: true + settings: + registry: git.ar21.de + username: + from_secret: REGISTRY_USER + password: + from_secret: REGISTRY_PASS + repo: git.ar21.de/aaron/ansible-lint + tags: latest + platforms: + - linux/arm64 + - linux/amd64 + dry_run: true + when: + - branch: + exclude: main + event: [push, manual]