Skip to content

Commit fb292c8

Browse files
test konveyor bot key
Signed-off-by: M Sajid Mansoori <[email protected]>
1 parent f4f4fca commit fb292c8

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/provision-linux.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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 }}

0 commit comments

Comments
 (0)