-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (50 loc) · 1.57 KB
/
remote-echidna.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
51
52
53
name: Remote Echidna
on:
workflow_call:
inputs:
project:
required: true
type: string
project_git_url:
required: true
type: string
project_git_checkout:
required: true
type: string
run_tests_cmd:
required: true
type: string
secrets:
AWS_ACCESS_KEY_ID:
required: true
AWS_SECRET_ACCESS_KEY:
required: true
AWS_REGION:
required: true
REMOTE_ECHIDNA_S3_BUCKET:
required: true
REMOTE_ECHIDNA_EC2_INSTANCE_KEY_NAME:
required: true
jobs:
deprovision:
name: Deprovision old resources
uses: ./.github/workflows/deprovision.yml
secrets:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: ${{ secrets.AWS_REGION }}
REMOTE_ECHIDNA_S3_BUCKET: ${{ secrets.REMOTE_ECHIDNA_S3_BUCKET }}
provision:
name: Provision new resources
uses: ./.github/workflows/provision.yml
with:
project: ${{ inputs.project }}
project_git_url: ${{ inputs.project_git_url }}
project_git_checkout: ${{ inputs.project_git_checkout }}
run_tests_cmd: ${{ inputs.run_tests_cmd }}
secrets:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: ${{ secrets.AWS_REGION }}
REMOTE_ECHIDNA_S3_BUCKET: ${{ secrets.REMOTE_ECHIDNA_S3_BUCKET }}
REMOTE_ECHIDNA_EC2_INSTANCE_KEY_NAME: ${{ secrets.REMOTE_ECHIDNA_EC2_INSTANCE_KEY_NAME }}