feat: add beta deployment on feature branches

This commit is contained in:
Karol Sójko
2021-12-15 12:53:37 +01:00
parent c59f85f498
commit 46e8348ea2
3 changed files with 80 additions and 12 deletions

View File

@@ -73,15 +73,13 @@ jobs:
cluster: dev
wait-for-service-stability: true
notify_slack:
notify_discord:
needs: deploy
runs-on: ubuntu-latest
steps:
- name: Notify slack
uses: pullreminders/slack-action@master
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
- name: Run Discord Webhook
uses: johnnyhuy/actions-discord-git-webhook@main
with:
args: '{ \"channel\": \"${{ secrets.SLACK_NOTIFICATION_CHANNEL }}\", \"blocks\": [{\"type\": \"section\", \"text\": {\"type\": \"mrkdwn\", \"text\": \"Successfully deployed <https://app-dev.standardnotes.com|[DEV] Web App>\"}}, {\"type\": \"section\", \"text\": {\"type\": \"mrkdwn\", \"text\": \"Changes: <https://github.com/standardnotes/web/commit/${{ github.sha }}|${{ github.sha }}>\"}, \"accessory\": {\"type\": \"image\", \"image_url\": \"https://website-dev.standardnotes.com/assets/icon.png\", \"alt_text\": \"Standard Notes\"}}, { \"type\": \"section\", \"fields\": [{\"type\": \"mrkdwn\", \"text\": \"<https://github.com/standardnotes/web/actions/runs/${{ github.run_id }}|Build details>\"}]}]}'
webhook_url: ${{ secrets.DISCORD_WEBHOOK_URL }}