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 ea700e7 commit 70b28f5
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions .github/workflows/self_runner_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,33 +18,30 @@ jobs:
echo "UUID=$UUID" >> $GITHUB_ENV
echo "::set-output name=uuid::$UUID"
- name: Check UUID in Setup
run: echo "Setup UUID ${{ steps.generate_uuid.outputs.uuid }}"

- name: Remove existing agr_github_runner directory
run: |
if [ -d "/var/go/actions-runner-dispatch/agr_github_runner" ]; then
rm -rf /var/go/actions-runner-dispatch/agr_github_runner
fi
- name: Clone agr_github_runner repository
run: |
git clone https://github.com/alliance-genome/agr_github_runner.git /var/go/actions-runner-dispatch/agr_github_runner
start-runner:
runs-on: flysql26-dispatch
needs: setup
outputs:
uuid: ${{ steps.set_output_uuid.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 }}
ACCESS_TOKEN: ${{ secrets.CREATE_RUNNER_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

- name: Set Output UUID
id: set_output_uuid
Expand All @@ -54,11 +51,11 @@ jobs:
needs: start-runner
runs-on: ${{ needs.start-runner.outputs.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:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

- name: Construct NEO_ENV_IMAGE
id: construct-image
Expand All @@ -77,5 +74,7 @@ jobs:
- name: Stop Dockerized Runner
uses: alliance-genome/agr_github_runner/.github/actions/stop_runner@main
with:
command: stop
UUID: ${{ needs.start-runner.outputs.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 70b28f5

Please sign in to comment.