Skip to content

Continuous deployment of next to QA and Test #1031

Continuous deployment of next to QA and Test

Continuous deployment of next to QA and Test #1031

name: Continuous deployment
run-name: Continuous deployment of ${{ github.ref_name }} to QA and Test
on:
push:
branches: [next]
jobs:
test:
permissions: {}
uses: ./.github/workflows/test.yml
deploy:
needs: test
strategy:
fail-fast: false
matrix:
environment: [qa, test]
permissions:
id-token: write
uses: ./.github/workflows/deploy.yml
with:
environment: ${{ matrix.environment }}
server_types: all
slack-notification:
needs: [deploy, test]
runs-on: ubuntu-latest
permissions: {}
if: ${{ !cancelled() }}
steps:
- name: Send Slack notification
if: needs.test.result == 'failure' || needs.deploy.result == 'failure'
uses: slackapi/slack-github-action@91efab103c0de0a537f72a35f6b8cda0ee76bf0a
with:
webhook: ${{ secrets.SLACK_MAVIS_ALERTS_WEBHOOK_URL }}
webhook-type: incoming-webhook
payload: |
text: ":rotating_light: Continuous Deployment failed :rotating_light:"
blocks:
- type: "section"
text:
type: "mrkdwn"
text: ":rotating_light: *Continuous Deployment failed* :rotating_light:\n\n \
<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View workflow run>"