Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Merge
name: Deploy Dev

on:
push:
Expand Down Expand Up @@ -101,3 +101,19 @@ jobs:
git config user.email "github-actions[bot]@users.noreply.github.com"
git add serving-api/dev/
git diff --staged --quiet && echo "No changes to deploy" || (git commit -m "deploy serving-api ${{ github.sha }}" && git push)

notify:
name: Slack Notification
runs-on: ubuntu-latest
needs: [changes, docker-backend, docker-frontend, deploy]
if: always()
steps:
- name: Notify Slack
uses: slackapi/slack-github-action@v2
with:
webhook-type: incoming-webhook
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
payload: |
{
"text": "${{ github.repository }} Deploy Dev — ${{ contains(needs.*.result, 'failure') && 'FAILED' || 'deployed' }}\nCommit: ${{ github.sha }}\n<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View run>"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release
name: Deploy Prod

on:
release:
Expand Down Expand Up @@ -87,3 +87,19 @@ jobs:
git config user.email "github-actions[bot]@users.noreply.github.com"
git add serving-api/prod/
git diff --staged --quiet && echo "No changes to deploy" || (git commit -m "release serving-api ${{ github.event.release.tag_name }}" && git push)

notify:
name: Slack Notification
runs-on: ubuntu-latest
needs: [validate-tag, docker-backend, docker-frontend, deploy]
if: always()
steps:
- name: Notify Slack
uses: slackapi/slack-github-action@v2
with:
webhook-type: incoming-webhook
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
payload: |
{
"text": "${{ github.repository }} Release — ${{ contains(needs.*.result, 'failure') && 'FAILED' || 'published' }}\nTag: ${{ github.event.release.tag_name }}\n<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View run>"
}
File renamed without changes.
Loading