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 24, 2024
1 parent ff8b955 commit cc5280a
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/self_runner_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ jobs:
start-runner:
runs-on: flysql26-dispatch
outputs:
runner_name: ${{ steps.start_runner.outputs.runner_name }}
uuid: ${{ steps.generate_uuid.outputs.uuid }}
steps:
- name: Generate UUID
Expand All @@ -19,15 +18,12 @@ jobs:
echo "::set-output name=uuid::$UUID"
- name: Start Dockerized Runner
id: start_runner
run: |
RUNNER_NAME=$(bash /var/go/actions-runner-dispatch/runner-controller.sh start ${{ secrets.CREATE_RUNNER_TOKEN }} ${{ secrets.AWS_ACCESS_KEY_ID }} ${{ secrets.AWS_SECRET_ACCESS_KEY }} ${{ steps.generate_uuid.outputs.uuid }})
echo "RUNNER_NAME=${RUNNER_NAME}" >> $GITHUB_ENV
echo "::set-output name=runner_name::${RUNNER_NAME}"
bash /var/go/actions-runner-dispatch/runner-controller.sh start ${{ secrets.CREATE_RUNNER_TOKEN }} ${{ secrets.AWS_ACCESS_KEY_ID }} ${{ secrets.AWS_SECRET_ACCESS_KEY }} ${{ steps.generate_uuid.outputs.uuid }}
use-runner:
needs: start-runner
runs-on: ${{ needs.start-runner.outputs.runner_name }}
runs-on: ${{ needs.start-runner.outputs.uuid }}
steps:
- name: Log in to ECR
env:
Expand Down Expand Up @@ -84,5 +80,4 @@ jobs:
steps:
- name: Stop Dockerized Runner
run: |
RUNNER_NAME="${{ needs.start-runner.outputs.runner_name }}"
bash /var/go/actions-runner-dispatch/runner-controller.sh stop $RUNNER_NAME
bash /var/go/actions-runner-dispatch/runner-controller.sh stop ${{ needs.start-runner.outputs.uuid }}

0 comments on commit cc5280a

Please sign in to comment.