Send Slack notification after publish

Signed-off-by: Stefan Scherer <stefan.scherer@docker.com>
This commit is contained in:
Stefan Scherer 2020-04-02 15:41:51 +02:00
parent e9a37e9cce
commit 7d2c555964
No known key found for this signature in database
GPG Key ID: 505AF50C5D02E697
2 changed files with 12 additions and 0 deletions

View File

@ -30,3 +30,9 @@ jobs:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
if: github.repository == 'docker/docker.github.io' && github.event_name == 'push'
- name: send slack notification
run: |
curl -X POST -H 'Content-type: application/json' --data '{"text":"Successfully promoted docs-stage from master. https://docs-stage.docker.com/"}' $SLACK
env:
SLACK: ${{ secrets.SLACK_WEBHOOK }}
if: github.repository == 'docker/docker.github.io' && github.event_name == 'push'

View File

@ -30,3 +30,9 @@ jobs:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
if: github.repository == 'docker/docker.github.io' && github.event_name == 'push'
- name: send slack notification
run: |
curl -X POST -H 'Content-type: application/json' --data '{"text":"Successfully published docs. https://docs.docker.com/"}' $SLACK
env:
SLACK: ${{ secrets.SLACK_WEBHOOK }}
if: github.repository == 'docker/docker.github.io' && github.event_name == 'push'