diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index 15941db4e..2149c7409 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -44,4 +44,17 @@ jobs: task-definition: ${{ steps.task-def.outputs.task-definition }} service: app-dev cluster: dev - wait-for-service-stability: false + wait-for-service-stability: true + + notify_slack: + needs: deploy + + runs-on: ubuntu-latest + + steps: + - name: Notify slack + uses: pullreminders/slack-action@master + env: + SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} + with: + args: '{ \"channel\": \"${{ secrets.SLACK_NOTIFICATION_CHANNEL }}\", \"blocks\": [{\"type\": \"section\", \"text\": {\"type\": \"mrkdwn\", \"text\": \"Successfully deployed \"}}, {\"type\": \"section\", \"text\": {\"type\": \"mrkdwn\", \"text\": \"Changes: \"}, \"accessory\": {\"type\": \"image\", \"image_url\": \"https://website-dev.standardnotes.org/assets/icon.png\", \"alt_text\": \"Standard Notes\"}}, { \"type\": \"section\", \"fields\": [{\"type\": \"mrkdwn\", \"text\": \"\"}]}]}' diff --git a/.github/workflows/prod.yml b/.github/workflows/prod.yml index 9874bc257..a5d24d67d 100644 --- a/.github/workflows/prod.yml +++ b/.github/workflows/prod.yml @@ -44,4 +44,17 @@ jobs: task-definition: ${{ steps.task-def.outputs.task-definition }} service: app-prod cluster: prod - wait-for-service-stability: false + wait-for-service-stability: true + + notify_slack: + needs: deploy + + runs-on: ubuntu-latest + + steps: + - name: Notify slack + uses: pullreminders/slack-action@master + env: + SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} + with: + args: '{ \"channel\": \"${{ secrets.SLACK_NOTIFICATION_CHANNEL }}\", \"blocks\": [{\"type\": \"section\", \"text\": {\"type\": \"mrkdwn\", \"text\": \"Successfully deployed \"}}, {\"type\": \"section\", \"text\": {\"type\": \"mrkdwn\", \"text\": \"Changes: \"}, \"accessory\": {\"type\": \"image\", \"image_url\": \"https://website-dev.standardnotes.org/assets/icon.png\", \"alt_text\": \"Standard Notes\"}}, { \"type\": \"section\", \"fields\": [{\"type\": \"mrkdwn\", \"text\": \"\"}]}]}'