buildimage/.woodpecker.yml

29 lines
685 B
YAML
Raw Normal View History

2023-09-21 15:58:51 +02:00
# SPDX-FileCopyrightText: 2023 Tobias Schmidl
#
# SPDX-License-Identifier: AGPL-3.0-or-later
---
2023-09-21 16:15:41 +02:00
variables:
- &repo git.schmidl.dev/${CI-REPO_OWNER}/buildimage
2023-09-13 17:26:12 +02:00
steps:
docker-build:
image: woodpeckerci/plugin-docker-buildx
2023-09-21 15:55:38 +02:00
group: build
2023-09-13 17:26:12 +02:00
settings:
2023-09-21 16:15:41 +02:00
repo: *repo
2023-09-13 17:26:12 +02:00
registry: git.schmidl.dev
dry_run: true
2023-09-21 16:11:06 +02:00
# output: type=oci,dest=${CI_REPO_OWNER}-buildimage.tar
2023-09-13 17:35:00 +02:00
2023-09-13 17:26:12 +02:00
publish-next-agent:
image: woodpeckerci/plugin-docker-buildx
2023-09-21 15:55:38 +02:00
group: publish
2023-09-13 17:26:12 +02:00
secrets: [docker_username, docker_password]
settings:
2023-09-21 16:15:41 +02:00
repo: *repo
2023-09-13 17:26:12 +02:00
dockerfile: dockerfile
platforms: linux/amd64,linux/arm64/v8
when:
2023-09-21 16:15:41 +02:00
branch: master
2023-09-13 17:26:12 +02:00
event: push
2023-09-21 15:58:51 +02:00
...