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