Skip to content

Commit 7bf530f

Browse files
committed
add ami
1 parent e095d0a commit 7bf530f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/auto-trigger-aws-ec2.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: Auto-Trigger-AWS-EC2
22
on:
33
workflow_dispatch:
4+
permissions:
5+
id-token: write
6+
contents: write
7+
pull-requests: write
48
jobs:
59

610
launch-runner:
@@ -19,7 +23,8 @@ jobs:
1923
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
2024
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
2125
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) \
2328
--single \
2429
--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 \
2530
--cloud-type=g4dn.xlarge --cloud-hdd-size=64 --cloud-spot --idle-timeout=1500 --name cml-test-001

0 commit comments

Comments
 (0)