builx and docker is a mess. let's try podman and buildah.

This commit is contained in:
Christoph Haas 2026-02-08 15:40:17 +01:00
parent d4695cb53a
commit ab6e3d929c

View file

@ -3,31 +3,44 @@ when:
event: push event: push
steps: steps:
build-docker-image: build-image:
name: build-image image: quay.io/buildah/stable:latest
when: pull: true
- event: push privileged: true
# This plugin handles the DinD complexity for you commands:
image: woodpeckerci/plugin-docker-buildx - echo $REGISTRY_PASSWORD | buildah login -u REGISTRY_USER --password-stdin registry.coolify1.workaround.org
privileged: true # Required for the plugin to start its internal Docker engine - buildah build --tag registry.coolify1.workaround.org/debshots:stage .
settings: - buildah push registry.coolify1.workaround.org/debshots:stage
registry: registry.coolify1.workaround.org
repo: registry.coolify1.workaround.org/debshots secrets:
driver: docker - $REGISTRY_USER
cache_from: 'type=registry\\,ref=registry.coolify1.workaround.org/debshots:buildcache' - $REGISTRY_PASSWORD
cache_to: 'type=registry\\,ref=registry.coolify1.workaround.org/debshots:buildcache,mode=max'
dockerfile: Dockerfile # build-docker-image:
username: # name: build-image
from_secret: REGISTRY_USER # when:
password: # - event: push
from_secret: REGISTRY_PASSWORD # # This plugin handles the DinD complexity for you
tags: # image: woodpeckerci/plugin-docker-buildx
- latest # privileged: true # Required for the plugin to start its internal Docker engine
- ${CI_COMMIT_SHA:0:7} # settings:
# tell the Dockerfile about the commit SHA and build date # registry: registry.coolify1.workaround.org
build_args: # repo: registry.coolify1.workaround.org/debshots
COMMIT_SHA: ${CI_COMMIT_SHA:0:7} # driver: docker
COMMIT_MESSAGE: ${CI_COMMIT_MESSAGE} # cache_from: 'type=registry\\,ref=registry.coolify1.workaround.org/debshots:buildcache'
# cache_to: 'type=registry\\,ref=registry.coolify1.workaround.org/debshots:buildcache,mode=max'
# dockerfile: Dockerfile
# username:
# from_secret: REGISTRY_USER
# password:
# from_secret: REGISTRY_PASSWORD
# tags:
# - latest
# - ${CI_COMMIT_SHA:0:7}
# # tell the Dockerfile about the commit SHA and build date
# build_args:
# COMMIT_SHA: ${CI_COMMIT_SHA:0:7}
# COMMIT_MESSAGE: ${CI_COMMIT_MESSAGE}
deploy-to-stage: deploy-to-stage:
image: curlimages/curl:latest image: curlimages/curl:latest