This commit is contained in:
Christoph Haas 2026-02-06 21:50:57 +01:00
parent 5f017ff96e
commit ab68a2101c

View file

@ -1,15 +1,19 @@
when:
- event: push
branch: main
kind: pipeline
name: build-and-push
steps:
- name: build
image: debian
commands:
- echo "This is the build step"
- echo "binary-data-123" > executable
- name: a-test-step
image: golang:1.16
commands:
- echo "Testing ..."
- ./executable
- name: build-image
# This plugin handles the DinD complexity for you
image: woodpeckerci/plugin-docker-buildx
privileged: true # Required for the plugin to start its internal Docker engine
settings:
registry: registry.coolify1.workaround.org
repo: registry.coolify1.workaround.org/debshots
dockerfile: Dockerfile
username:
from_secret: REGISTRY_USER
password:
from_secret: REGISTRY_PASSWORD
tags:
- latest
- ${CI_COMMIT_SHA:0:7}