diff --git a/.woodpecker.yml b/.woodpecker.yml index f741f4a..d1a8df3 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,26 +1,39 @@ steps: - - name: slack-begin - image: plugins/slack + - name: init + image: ubuntu settings: - webhook: - from_secret: SLACK_WEBHOOK_URL - username: Drone - template: - {{repo.name}}/{{build.branch}} - Started #{{build.number}} (<{{build.link}}>|Open) - - name: build - settings: - VAULT_MASTER_SSH_PRIV_KEY: - from_secret: VAULT_MASTER_SSH_PRIV_KEY - VAULT_MASTER_SSH_PUB_KEY: - from_secret: VAULT_MASTER_SSH_PUB_KEY - image: devforth/drone-builder + VAULT_MASTER_SSH_PRIV_KEY: + from_secret: VAULT_MASTER_SSH_PRIV_KEY + VAULT_MASTER_SSH_PUB_KEY: + from_secret: VAULT_MASTER_SSH_PUB_KEY + SLACK_WEBHOOK_URL: + from_secret: SLACK_WEBHOOK_URL commands: - - cd deploy && /bin/bash build.sh - - name: slack-end - image: plugins/slack - settings: - webhook: - from_secret: SLACK_WEBHOOK_URL - username: Drone - template: - {{repo.name}}/{{build.branch}} - Finished #{{build.number}} (<{{build.link}}>|Open) + - echo $VAULT_MASTER_SSH_PUB_KEY + - echo $VAULT_MASTER_SSH_PRIV_KEY + - echo $SLACK_WEBHOOK_URL + # - name: slack-begin + # image: plugins/slack + # settings: + # webhook: + # from_secret: SLACK_WEBHOOK_URL + # username: Drone + # template: + # {{repo.name}}/{{build.branch}} - Started #{{build.number}} (<{{build.link}}>|Open) + # - name: build + # settings: + # VAULT_MASTER_SSH_PRIV_KEY: + # from_secret: VAULT_MASTER_SSH_PRIV_KEY + # VAULT_MASTER_SSH_PUB_KEY: + # from_secret: VAULT_MASTER_SSH_PUB_KEY + # image: devforth/drone-builder + # commands: + # - cd deploy && /bin/bash build.sh + # - name: slack-end + # image: plugins/slack + # settings: + # webhook: + # from_secret: SLACK_WEBHOOK_URL + # username: Drone + # template: + # {{repo.name}}/{{build.branch}} - Finished #{{build.number}} (<{{build.link}}>|Open)