Skip to content

Commit

Permalink
Update self_runner_test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
christabone authored Jun 25, 2024
1 parent 1282e31 commit 05c5dc8
Showing 1 changed file with 4 additions and 19 deletions.
23 changes: 4 additions & 19 deletions .github/workflows/self_runner_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,13 @@ on:
jobs:
setup:
runs-on: flysql26-dispatch
outputs:
uuid: ${{ steps.generate_uuid.outputs.uuid }}
steps:
- name: Generate UUID
id: generate_uuid
run: |
UUID=$(uuidgen)
echo "UUID=$UUID"
echo "UUID=$UUID" >> $GITHUB_ENV
echo "::set-output name=uuid::$UUID"
- name: Check UUID in Setup
run: echo "UUID ${{env.UUID}}"
- name: Remove existing agr_github_runner directory
run: |
Expand All @@ -34,28 +28,20 @@ jobs:
start-runner:
runs-on: flysql26-dispatch
needs: setup
outputs:
uuid: ${{ steps.start_dockerized_runner.outputs.uuid }}
steps:
- name: Check UUID in Start Runner
run: echo "Start Runner UUID ${{ needs.setup.outputs.uuid }}"

- name: Start Dockerized Runner
id: start_dockerized_runner
uses: alliance-genome/agr_github_runner/.github/actions/start_runner@main
with:
UUID: ${{ needs.setup.outputs.uuid }}
UUID: ${{env.UUID}}
ACCESS_TOKEN: ${{ secrets.CREATE_RUNNER_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

use-runner:
needs: start-runner
runs-on: ${{ needs.start-runner.outputs.uuid }}
runs-on: ${{env.UUID}}
steps:
- name: Check UUID in Use Runner
run: echo "Use Runner UUID ${{ needs.start-runner.outputs.uuid }}"

- name: Log in to ECR
uses: alliance-genome/agr_github_runner/.github/actions/login_to_ecr@main
with:
Expand All @@ -77,10 +63,9 @@ jobs:
needs: use-runner
steps:
- name: Stop Dockerized Runner
uses: alliance-genome/agr_github_runner/.github/actions/start_runner@main
uses: alliance-genome/agr_github_runner/.github/actions/stop_runner@main
with:
command: stop
UUID: ${{ needs.start-runner.outputs.uuid }}
UUID: ${{env.UUID}}
ACCESS_TOKEN: ${{ secrets.CREATE_RUNNER_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

0 comments on commit 05c5dc8

Please sign in to comment.