buildimage/.woodpecker.yml

44 lines
919 B
YAML
Raw Normal View History

2023-09-13 17:26:12 +02:00
# SPDX-FileCopyrightText: 2023 Tobias Schmidl
#
# SPDX-License-Identifier: AGPL-3.0-or-later
---
variables:
- &repo 'git.schmidl.dev/schtobia/buildimage'
2023-09-22 08:50:30 +02:00
- &registry 'git.schmidl.dev'
- &platforms 'linux/amd64, linux/arm64/v8'
2023-09-13 17:26:12 +02:00
steps:
docker-build:
image: woodpeckerci/plugin-docker-buildx
group: build
2023-09-13 17:26:12 +02:00
settings:
2023-09-22 09:51:14 +02:00
auto_tags: true
repo: *repo
2023-09-22 08:50:30 +02:00
registry: *registry
platforms: *platforms
2023-09-13 17:26:12 +02:00
dry_run: true
when:
branch:
exclude: [ master ]
event: push
2023-09-13 17:26:12 +02:00
publish-next-agent:
image: woodpeckerci/plugin-docker-buildx
2023-09-22 08:50:30 +02:00
group: build
2023-09-13 17:26:12 +02:00
secrets: [docker_username, docker_password]
settings:
2023-09-22 09:51:14 +02:00
auto_tags: true
repo: *repo
2023-09-22 08:50:30 +02:00
registry: *registry
platforms: *platforms
username:
from_secret: docker_username
password:
from_secret: docker_password
2023-09-13 17:26:12 +02:00
when:
2023-09-22 09:51:14 +02:00
event: push
branch: master
2023-09-22 08:50:30 +02:00
...