File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 1
1
name : Auto-Trigger-AWS-EC2
2
2
on :
3
3
workflow_dispatch :
4
+ permissions :
5
+ id-token : write
6
+ contents : write
7
+ pull-requests : write
4
8
jobs :
5
9
6
10
launch-runner :
19
23
AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
20
24
AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
21
25
run : |
22
- cml runner launch \
26
+ cml runner --cloud-metadata="actions_link=https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" \
27
+ --cloud-startup-script=$(echo 'curl https://github.com/${{ github.actor }}.keys >> /home/ubuntu/.ssh/authorized_keys' | base64 -w 0) \
23
28
--single \
24
29
--labels=aws-test --cloud=aws --cloud-image="amazon/Deep Learning ARM64 AMI OSS Nvidia Driver GPU PyTorch 2.4.0 (Ubuntu 22.04) 20241101" --cloud-region=ap-south-1 \
25
30
--cloud-type=g4dn.xlarge --cloud-hdd-size=64 --cloud-spot --idle-timeout=1500 --name cml-test-001
You can’t perform that action at this time.
0 commit comments