buildimage/.woodpecker.yml

38 lines
827 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-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:
repo: *repo
2023-09-13 17:26:12 +02:00
registry: git.schmidl.dev
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
group: publish
2023-09-13 17:26:12 +02:00
secrets: [docker_username, docker_password]
settings:
repo: *repo
registry: git.schmidl.dev
2023-09-13 17:26:12 +02:00
dockerfile: dockerfile
platforms: linux/amd64,linux/arm64/v8
username:
from_secret: docker_username
password:
from_secret: docker_password
2023-09-13 17:26:12 +02:00
when:
branch: master
2023-09-13 17:26:12 +02:00
event: push
...