-
-
Notifications
You must be signed in to change notification settings - Fork 217
33 lines (30 loc) · 1.09 KB
/
scalability.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
name: Scalability Workflow
on:
workflow_dispatch:
push:
tags:
- "*-beta.*"
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 }}
jobs:
build:
name: Set up Medic on EC2 and Execute Jmeter on another EC2
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Configure AWS Credentials
if: ${{ env.INTERNAL_CONTRIBUTOR }}
uses: aws-actions/configure-aws-credentials@v1-node16
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