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 +...