From 70b28f5f39f455d29f9f650c8e4223ee09910498 Mon Sep 17 00:00:00 2001 From: Chris Tabone Date: Tue, 25 Jun 2024 15:01:10 -0300 Subject: [PATCH] Update self_runner_test.yml --- .github/workflows/self_runner_test.yml | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/.github/workflows/self_runner_test.yml b/.github/workflows/self_runner_test.yml index af5cce58..f0c4e6f3 100644 --- a/.github/workflows/self_runner_test.yml +++ b/.github/workflows/self_runner_test.yml @@ -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 @@ -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 @@ -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 }}