|
9 | 9 |
|
10 | 10 | jobs:
|
11 | 11 | aws:
|
12 |
| - runs-on: [cuda] |
| 12 | + runs-on: ubuntu-20.04 |
13 | 13 | environment: aws
|
14 | 14 | steps:
|
15 |
| - # - uses: actions/checkout@v3 |
16 |
| - # with: |
17 |
| - # sparse-checkout: devops/actions/aws-ec2 |
18 |
| - # - run: npm install ./devops/actions/aws-ec2 |
19 |
| - - run: echo "${{ github.event.action }}" |
| 15 | + - uses: actions/checkout@v3 |
| 16 | + with: |
| 17 | + sparse-checkout: devops/actions/aws-ec2 |
| 18 | + - run: npm install ./devops/actions/aws-ec2 |
20 | 19 | - id: mode
|
21 | 20 | run: |
|
22 | 21 | if [ "${{ github.event.action }}" == "completed" ]; then
|
23 | 22 | echo 'MODE=stop' >> $GITHUB_OUTPUT
|
24 | 23 | else
|
25 | 24 | echo 'MODE=start' >> $GITHUB_OUTPUT
|
26 | 25 | fi
|
27 |
| - - run: echo "${{ steps.mode.outputs.MODE }}" |
28 |
| - - run: echo '[{"runs-on":"aws_cuda-${{ github.event.workflow_run.id }}-${{ github.event.workflow_run.run_attempt }}","aws-ami":"ami-01cb0573cb039ab24","aws-type":["g5.2xlarge","g5.4xlarge"],"aws-disk":"/dev/sda1:64","aws-spot":"false"}]' |
29 |
| - # - uses: ./devops/actions/aws-ec2 |
30 |
| - # with: |
31 |
| - # mode: ${{ steps.mode.outputs.MODE }} |
32 |
| - # runs-on-list: '[{"runs-on":"aws_cuda-${{ github.event.workflow_run.id }}-${{ github.event.workflow_run.run_attempt }}","aws-ami":"ami-01cb0573cb039ab24","aws-type":["g5.2xlarge","g5.4xlarge"],"aws-disk":"/dev/sda1:64","aws-spot":"false"}]' |
33 |
| - # GH_PERSONAL_ACCESS_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} |
34 |
| - # AWS_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY }} |
35 |
| - # AWS_SECRET_KEY: ${{ secrets.AWS_SECRET_KEY }} |
| 26 | + - uses: ./devops/actions/aws-ec2 |
| 27 | + with: |
| 28 | + mode: ${{ steps.mode.outputs.MODE }} |
| 29 | + runs-on-list: '[{"runs-on":"aws_cuda-${{ github.event.workflow_run.id }}-${{ github.event.workflow_run.run_attempt }}","aws-ami":"ami-01cb0573cb039ab24","aws-type":["g5.2xlarge","g5.4xlarge"],"aws-disk":"/dev/sda1:64","aws-spot":"false"}]' |
| 30 | + GH_PERSONAL_ACCESS_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} |
| 31 | + AWS_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY }} |
| 32 | + AWS_SECRET_KEY: ${{ secrets.AWS_SECRET_KEY }} |
0 commit comments