diff --git a/.woodpecker.yml b/.woodpecker.yml index 5b515c8..6baa1c2 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,8 +1,17 @@ --- -steps: +when: + - event: + - 'push' + - 'manual' +steps: - name: 'Build uffd-ldapd image' image: 'quay.io/buildah/stable:latest' privileged: true + environment: + DEPLOY_TOKEN: + from_secret: 'DEPLOY_TOKEN' commands: - - 'buildah build .' + - 'buildah build -t enbewe.de/Coding/uffd-ldapd:latest .' + - 'buildah login -u enbewe -p $DEPLOY_TOKEN git.enbewe.de' + - 'buildah push enbewe.de/Coding/uffd-ldapd:latest'