File tree 1 file changed +39
-0
lines changed
1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Provision Linux VM using reusable workflow.
2
+
3
+ on : [push]
4
+
5
+ jobs :
6
+ call-reusable-workflow :
7
+ uses : ./.github/workflows/provision-runner.yml
8
+ with :
9
+ ec2-image-id : ami-00cc4df80270a8821
10
+ ec2-instance-type : t2.micro
11
+ security-group-id : sg-0a3e6b53e86d0e69d
12
+ subnet-id : subnet-06113672589e7e836
13
+ ec2-os-type : linux
14
+ secrets :
15
+ aws-access-key-id : ${{ secrets.AWS_ACCESS_KEY_ID }}
16
+ aws-secret-access-key : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
17
+ github-token : ${{ secrets.KONVEYOR_BOT_KEY }}
18
+
19
+ run-commands :
20
+ needs : call-reusable-workflow
21
+ runs-on : ${{ needs.call-reusable-workflow.outputs.instance_label }}
22
+ steps :
23
+ - name : Running script on linux
24
+ run : |
25
+ echo "Running from linux"
26
+ cat /etc/os-release
27
+ echo ${{ needs.call-reusable-workflow.outputs.instance_label }}
28
+
29
+
30
+ remove-ec2-runner :
31
+ needs : [call-reusable-workflow,run-commands]
32
+ uses : ./.github/workflows/remove-runner.yml
33
+ with :
34
+ ec2-instance-id : ${{ needs.call-reusable-workflow.outputs.ec2-instance-id }}
35
+ ec2-runner-label : ${{ needs.call-reusable-workflow.outputs.instance_label }}
36
+ secrets :
37
+ aws-access-key-id : ${{ secrets.AWS_ACCESS_KEY_ID }}
38
+ aws-secret-access-key : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
39
+ github-token : ${{ secrets.KONVEYOR_BOT_KEY }}
You can’t perform that action at this time.
0 commit comments