Fix deprecated secrets syntax in Woodpecker CI config

This commit is contained in:
colin 2025-07-03 12:23:09 -04:00
parent 78e7372476
commit 2605ed8ef3
1 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,11 @@
steps: steps:
- name: build - name: build
image: woodpeckerci/plugin-docker-buildx image: woodpeckerci/plugin-docker-buildx
environment:
DOCKER_USERNAME:
from_secret: docker_username
DOCKER_PASSWORD:
from_secret: docker_password
settings: settings:
repo: registry.example.com/ploughshares repo: registry.example.com/ploughshares
registry: registry.example.com registry: registry.example.com
@ -12,7 +17,6 @@ steps:
platforms: platforms:
- linux/amd64 - linux/amd64
- linux/arm64 - linux/arm64
secrets: [ docker_username, docker_password ]
when: when:
event: [push, tag] event: [push, tag]
branch: [main, master] branch: [main, master]