Merge pull request #10564 from docker/send-slack

ci: Send slack after successful publish
This commit is contained in:
Usha Mandya 2020-04-02 16:12:42 +00:00 committed by GitHub
commit dabe60a304
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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'