From bf371e76c5aefb4832bb089be76ee38e834b3488 Mon Sep 17 00:00:00 2001 From: Tobias Schmidl Date: Wed, 13 Sep 2023 17:26:12 +0200 Subject: [PATCH] added basic woodpecker config --- .pre-commit-config.yaml | 4 ++++ .woodpecker.yml | 24 ++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 .woodpecker.yml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9a58a64..d943121 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -20,4 +20,8 @@ repos: rev: '2.7.2' hooks: - id: editorconfig-checker +- repo: https://git.schmidl.dev/schtobia/woodpecker-lint + rev: 1.0.0 + hooks: + - id: woodpecker-lint ... diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..c82e8fa --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,24 @@ +# SPDX-FileCopyrightText: 2023 Tobias Schmidl +# +# SPDX-License-Identifier: AGPL-3.0-or-later + +--- +steps: + docker-build: + image: woodpeckerci/plugin-docker-buildx + settings: + repo: git.schmidl.dev/${CI-REPO_OWNER}/buildimage + registry: git.schmidl.dev + dry_run: true + output: type=oci,dest=${CI_REPO_OWNER}-buildimage.tar + publish-next-agent: + image: woodpeckerci/plugin-docker-buildx + secrets: [docker_username, docker_password] + settings: + repo: git.schmidl.dev/${CI-REPO_OWNER}/buildimage + dockerfile: dockerfile + platforms: linux/amd64,linux/arm64/v8 + when: + branch: ${CI_REPO_DEFAULT_BRANCH} + event: push +...