From 328cae30ab6b4e1f0d2134843bfa25efc6219259 Mon Sep 17 00:00:00 2001 From: sferatime Date: Wed, 27 Nov 2024 22:32:56 +0800 Subject: [PATCH] Update runs-on --- .github/workflows/pipeline.yml | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index fe74ff0dd..00faef98f 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -25,7 +25,7 @@ concurrency: cancel-in-progress: true jobs: build-image: - runs-on: neon-evm-1 + runs-on: ["self-hosted", "k8s-prod"] outputs: evm_tag: ${{ steps.tags.outputs.evm_tag }} evm_sha_tag: ${{ steps.tags.outputs.evm_sha_tag }} @@ -33,9 +33,13 @@ jobs: is_evm_release: ${{ steps.tags.outputs.is_evm_release }} neon_test_tag: ${{ steps.tags.outputs.neon_test_tag }} steps: + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - uses: actions/setup-python@v5 - uses: actions/checkout@v4 with: fetch-depth: 0 + - run: pip install -r ./.github/workflows/requirements.txt - name: Specify image tags run: | python3 ./.github/workflows/deploy.py specify_image_tags \ @@ -60,13 +64,17 @@ jobs: --evm_sha_tag=${{ steps.tags.outputs.evm_sha_tag }} \ --evm_tag=${{ steps.tags.outputs.evm_tag }} run-evm-tests: - runs-on: test-runner + runs-on: ["self-hosted", "k8s-prod"] needs: - build-image steps: + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - uses: actions/setup-python@v5 - uses: actions/checkout@v4 with: fetch-depth: 0 + - run: pip install -r ./.github/workflows/requirements.txt - name: Run tests run: | python3 ./.github/workflows/deploy.py run_tests \ @@ -78,13 +86,17 @@ jobs: if: "failure()" uses: "andymckay/cancel-action@0.4" trigger-proxy-tests: - runs-on: trigger-runner + runs-on: ["self-hosted", "k8s-prod"] needs: - build-image steps: + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - uses: actions/setup-python@v5 - uses: actions/checkout@v4 with: fetch-depth: 0 + - run: pip install -r ./.github/workflows/requirements.txt - name: Trigger proxy build run: | python3 ./.github/workflows/deploy.py trigger_proxy_action \ @@ -100,15 +112,19 @@ jobs: if: "failure()" uses: "andymckay/cancel-action@0.4" finalize-image: - runs-on: neon-evm-1 + runs-on: ["self-hosted", "k8s-prod"] needs: - build-image - trigger-proxy-tests - run-evm-tests steps: + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - uses: actions/setup-python@v5 - uses: actions/checkout@v4 with: fetch-depth: 0 + - run: pip install -r ./.github/workflows/requirements.txt - name: Finalize image run: | python3 ./.github/workflows/deploy.py finalize_image \ @@ -121,4 +137,4 @@ jobs: python3 ./.github/workflows/deploy.py send_notification \ --evm_tag=${{ needs.build-image.outputs.evm_tag }} \ --url=${{secrets.SLACK_EVM_CHANNEL_URL}} \ - --build_url=${BUILD_URL} + --build_url=${BUILD_URL} \ No newline at end of file