This commit is contained in:
2024-02-20 00:28:50 +03:00
parent c08f1b02f7
commit 6d6fa98bb4

View File

@@ -1,26 +1,39 @@
steps: steps:
- name: slack-begin - name: init
image: plugins/slack image: ubuntu
settings: settings:
webhook: VAULT_MASTER_SSH_PRIV_KEY:
from_secret: SLACK_WEBHOOK_URL from_secret: VAULT_MASTER_SSH_PRIV_KEY
username: Drone VAULT_MASTER_SSH_PUB_KEY:
template: from_secret: VAULT_MASTER_SSH_PUB_KEY
{{repo.name}}/{{build.branch}} - Started #{{build.number}} (<{{build.link}}>|Open) SLACK_WEBHOOK_URL:
- name: build from_secret: SLACK_WEBHOOK_URL
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: commands:
- cd deploy && /bin/bash build.sh - echo $VAULT_MASTER_SSH_PUB_KEY
- name: slack-end - echo $VAULT_MASTER_SSH_PRIV_KEY
image: plugins/slack - echo $SLACK_WEBHOOK_URL
settings: # - name: slack-begin
webhook: # image: plugins/slack
from_secret: SLACK_WEBHOOK_URL # settings:
username: Drone # webhook:
template: # from_secret: SLACK_WEBHOOK_URL
{{repo.name}}/{{build.branch}} - Finished #{{build.number}} (<{{build.link}}>|Open) # 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)