buildimage/.woodpecker.yml
Tobias Schmidl fc80df1ce7
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
fix: pass docker_username, docker_password to publish stage
2023-09-22 08:18:22 +02:00

37 lines
830 B
YAML

# SPDX-FileCopyrightText: 2023 Tobias Schmidl
#
# SPDX-License-Identifier: AGPL-3.0-or-later
---
variables:
- &repo 'git.schmidl.dev/schtobia/buildimage'
steps:
docker-build:
image: woodpeckerci/plugin-docker-buildx
group: build
settings:
repo: *repo
registry: git.schmidl.dev
dry_run: true
when:
branch:
exclude: [ master ]
event: push
publish-next-agent:
image: woodpeckerci/plugin-docker-buildx
group: publish
secrets: [docker_username, docker_password]
settings:
repo: *repo
registry: git.schmidl.dev
dockerfile: dockerfile
platforms: linux/amd64,linux/arm64/v8
username:
from_secret: docker_username
password:
from_secret: docker_password
#when:
# branch: master
# event: push
...