diff --git a/.github/workflows/create-ephemeral-self-hosted-runner.yml b/.github/workflows/create-ephemeral-self-hosted-runner.yml new file mode 100644 index 0000000000..129eb96c9e --- /dev/null +++ b/.github/workflows/create-ephemeral-self-hosted-runner.yml @@ -0,0 +1,22 @@ +name: Create ephemeral self hosted EC2 runner + +on: + workflow_job: + types: [queued] + +jobs: + create-ephemeral-self-hosted-runner: + runs-on: ubuntu-latest + if: | + contains(join(fromJSON(toJSON(github.event.workflow_job.labels)), ','), 'self-hosted') && + contains(join(fromJSON(toJSON(github.event.workflow_job.labels)), ','), 'linux') && + contains(join(fromJSON(toJSON(github.event.workflow_job.labels)), ','), 'ARM64') + steps: + - name: Set up AWS CLI + uses: aws-actions/configure-aws-credentials@v2 + with: + role-to-assume: ${{ secrets.ROLE_TO_ASSUME }} + aws-region: ${{ secrets.AWS_REGION }} + + - name: Print comfirmation + run: echo Role assumed diff --git a/.github/workflows/scale-shr-test.yml b/.github/workflows/scale-shr-test.yml index 68f6f76cef..f242fcba2a 100644 --- a/.github/workflows/scale-shr-test.yml +++ b/.github/workflows/scale-shr-test.yml @@ -4,7 +4,6 @@ on: jobs: hello-world: - name: "say hello world" runs-on: [self-hosted, linux, ARM64] steps: - name: print Hello World