-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (48 loc) · 1.47 KB
/
acceptance-stage.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Acceptance Stage
on:
workflow_run:
workflows: ['Commit Stage']
types: [completed]
branches: main
concurrency: acceptance
env:
OWNER: flawmop
REGISTRY: ghcr.io
APP_REPO: simulation-invoke-svc
DEPLOY_REPO: portal-deploy
VERSION: ${{ github.sha }}
jobs:
functional:
name: Functional Acceptance Tests
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-22.04
steps:
- run: echo "Running functional acceptance tests"
performance:
name: Performance Tests
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-22.04
steps:
- run: echo "Running performance tests"
security:
name: Security Tests
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-22.04
steps:
- run: echo "Running security tests"
deliver:
name: Deliver release candidate to production
needs: [ functional, performance, security ]
runs-on: ubuntu-22.04
steps:
- name: Deliver application to production
uses: peter-evans/[email protected]
with:
token: ${{ secrets.DISPATCH_TOKEN }}
repository: ${{ env.OWNER }}/${{ env.DEPLOY_REPO }}
event-type: app_acceptance_delivery
client-payload: '{
"app_image": "${{ env.REGISTRY }}/${{ env.OWNER }}/${{ env.APP_REPO }}",
"app_name": "${{ env.APP_REPO }}",
"app_version": "${{ env.VERSION }}"
}'