2023-09-13 17:26:12 +02:00
|
|
|
# SPDX-FileCopyrightText: 2023 Tobias Schmidl
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
2023-09-22 08:34:50 +02:00
|
|
|
|
2023-09-21 22:44:06 +02:00
|
|
|
---
|
|
|
|
variables:
|
|
|
|
- &repo 'git.schmidl.dev/schtobia/buildimage'
|
2023-09-22 08:50:30 +02:00
|
|
|
- ®istry '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
|
2023-09-21 22:44:06 +02:00
|
|
|
group: build
|
2023-09-13 17:26:12 +02:00
|
|
|
settings:
|
2023-09-22 09:51:14 +02:00
|
|
|
auto_tag: true
|
2023-09-21 22:44:06 +02:00
|
|
|
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
|
2023-09-22 08:34:50 +02:00
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
exclude: [ master ]
|
|
|
|
event: push
|
2023-09-21 22:44:06 +02:00
|
|
|
|
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_tag: true
|
2023-09-21 22:44:06 +02:00
|
|
|
repo: *repo
|
2023-09-22 08:50:30 +02:00
|
|
|
registry: *registry
|
|
|
|
platforms: *platforms
|
2023-09-22 08:34:50 +02:00
|
|
|
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
|
2023-09-21 22:44:06 +02:00
|
|
|
branch: master
|
2023-09-22 08:50:30 +02:00
|
|
|
|
2023-09-21 22:44:06 +02:00
|
|
|
...
|