buildimage/.woodpecker.yml
Tobias Schmidl f8912ef04f
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
fix: enable auto_tag for Woodpecker
Reviewed-on: #3
Co-authored-by: Tobias Schmidl <tobias@schmidl.dev>
Co-committed-by: Tobias Schmidl <tobias@schmidl.dev>
2023-09-22 10:07:38 +02:00

43 lines
917 B
YAML

# SPDX-FileCopyrightText: 2023 Tobias Schmidl
#
# SPDX-License-Identifier: AGPL-3.0-or-later
---
variables:
- &repo 'git.schmidl.dev/schtobia/buildimage'
- &registry 'git.schmidl.dev'
- &platforms 'linux/amd64, linux/arm64/v8'
steps:
docker-build:
image: woodpeckerci/plugin-docker-buildx
group: build
settings:
auto_tag: 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_tag: true
repo: *repo
registry: *registry
platforms: *platforms
username:
from_secret: docker_username
password:
from_secret: docker_password
when:
event: push
branch: master
...