The BuildKit builder cannot push to the insecure HTTP registry at registry.viktorbarzin.lan:5050 because buildkit_config is not being applied by the plugin. Simplified to DockerHub-only push for now. Private registry caching and push can be re-added once buildkit_config issue is resolved.
26 lines
550 B
YAML
26 lines
550 B
YAML
when:
|
|
event: push
|
|
|
|
clone:
|
|
git:
|
|
image: woodpeckerci/plugin-git
|
|
settings:
|
|
attempts: 5
|
|
backoff: 10s
|
|
|
|
steps:
|
|
- name: build-image
|
|
image: woodpeckerci/plugin-docker-buildx
|
|
settings:
|
|
username: "viktorbarzin"
|
|
password:
|
|
from_secret: dockerhub-pat
|
|
repo: viktorbarzin/infra
|
|
logins:
|
|
- registry: https://index.docker.io/v1/
|
|
username: viktorbarzin
|
|
password:
|
|
from_secret: dockerhub-pat
|
|
dockerfile: cli/Dockerfile
|
|
context: cli
|
|
auto_tag: true
|