added basic woodpecker config

This commit is contained in:
Tobias Schmidl 2023-09-13 17:26:12 +02:00
parent ee0358dcf5
commit c1992b8ae2
2 changed files with 26 additions and 0 deletions

View file

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

22
.woodpecker.yml Normal file
View file

@ -0,0 +1,22 @@
# 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