Tobias Schmidl
245de72aa5
All checks were successful
ci/woodpecker/manual/woodpecker Pipeline was successful
43 lines
919 B
YAML
43 lines
919 B
YAML
# SPDX-FileCopyrightText: 2023 Tobias Schmidl
|
|
#
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
---
|
|
variables:
|
|
- &repo 'git.schmidl.dev/schtobia/buildimage'
|
|
- ®istry 'git.schmidl.dev'
|
|
- &platforms 'linux/amd64, linux/arm64/v8'
|
|
|
|
steps:
|
|
docker-build:
|
|
image: woodpeckerci/plugin-docker-buildx
|
|
group: build
|
|
settings:
|
|
auto_tags: true
|
|
repo: *repo
|
|
registry: *registry
|
|
platforms: *platforms
|
|
dry_run: true
|
|
when:
|
|
branch:
|
|
exclude: [ master ]
|
|
event: push
|
|
|
|
publish-next-agent:
|
|
image: woodpeckerci/plugin-docker-buildx
|
|
group: build
|
|
secrets: [docker_username, docker_password]
|
|
settings:
|
|
auto_tags: true
|
|
repo: *repo
|
|
registry: *registry
|
|
platforms: *platforms
|
|
username:
|
|
from_secret: docker_username
|
|
password:
|
|
from_secret: docker_password
|
|
when:
|
|
event: push
|
|
branch: master
|
|
|
|
...
|