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:
webhook:
from_secret: SLACK_WEBHOOK_URL
username: Drone
template:
{{repo.name}}/{{build.branch}} - Started #{{build.number}} (<{{build.link}}>|Open)
- name: build
settings: settings:
VAULT_MASTER_SSH_PRIV_KEY: VAULT_MASTER_SSH_PRIV_KEY:
from_secret: VAULT_MASTER_SSH_PRIV_KEY from_secret: VAULT_MASTER_SSH_PRIV_KEY
VAULT_MASTER_SSH_PUB_KEY: VAULT_MASTER_SSH_PUB_KEY:
from_secret: VAULT_MASTER_SSH_PUB_KEY from_secret: VAULT_MASTER_SSH_PUB_KEY
image: devforth/drone-builder SLACK_WEBHOOK_URL:
commands:
- cd deploy && /bin/bash build.sh
- name: slack-end
image: plugins/slack
settings:
webhook:
from_secret: SLACK_WEBHOOK_URL from_secret: SLACK_WEBHOOK_URL
username: Drone commands:
template: - echo $VAULT_MASTER_SSH_PUB_KEY
{{repo.name}}/{{build.branch}} - Finished #{{build.number}} (<{{build.link}}>|Open) - 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)