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'