forked from medic/cht-core
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (34 loc) · 1.22 KB
/
scalability.yml
File metadata and controls
37 lines (34 loc) · 1.22 KB
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
name: Scalability Workflow
on:
workflow_run:
workflows: [ Build and test ]
types:
- completed
tags:
- "*-beta.*"
workflow_dispatch:
env:
STAGING_SERVER: ${{ secrets.AUTH_MARKET_URL && '_couch/builds_4' || '_couch/builds_external' }}
MARKET_URL_READ: 'https://staging.dev.medicmobile.org'
INTERNAL_CONTRIBUTOR: ${{ secrets.SCALABILITY_ARN && 'true' }}
SCALABILITY_ARN: ${{ secrets.SCALABILITY_ARN }}
BRANCH: ${{ github.head_ref || github.ref_name }}
BUILD_NUMBER: ${{ github.run_id }}
SCALABILITY_RESULTS_TOKEN: ${{ secrets.SCALABILITY_RESULTS_TOKEN }}
jobs:
build:
name: Set up Medic on EC2 and Execute Jmeter on another EC2
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Configure AWS Credentials
if: ${{ env.INTERNAL_CONTRIBUTOR }}
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.SCALABILITY_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.SCALABILITY_SECRET_ACCESS_KEY }}
aws-region: ca-central-1
- name: Start EC2 and CHT
if: ${{ env.INTERNAL_CONTRIBUTOR }}
run: cd tests/scalability && ./start-ec2-cht.sh $BRANCH