From 6f3c064b295e7e011ba5cc358880adb42d8909a8 Mon Sep 17 00:00:00 2001 From: Nis Wechselberg Date: Mon, 9 Jun 2025 20:08:14 +0200 Subject: [PATCH] Container build with proper image as well as deploy Signed-off-by: Nis Wechselberg --- .woodpecker.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 4cd9fce..320ce26 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,6 +1,17 @@ --- +when: + - event: + - 'push' + - 'manual' + steps: - - name: 'Build uffd-ldapd image' + - name: 'Build and deploy uffd-ldapd container image' image: 'quay.io/buildah/stable:latest' + privileged: true + environment: + DEPLOY_TOKEN: + from_secret: 'DEPLOY_TOKEN' commands: - - 'buildah build .' + - 'buildah build -t git.enbewe.de/coding/uffd-ldapd:latest .' + - 'buildah login -u enbewe -p $DEPLOY_TOKEN git.enbewe.de' + - 'buildah push git.enbewe.de/coding/uffd-ldapd:latest'