From 3bf63c6d07eef934a66806f86a54ea73142d3f83 Mon Sep 17 00:00:00 2001 From: Max Isom Date: Fri, 27 Dec 2024 15:07:28 -0600 Subject: [PATCH] [BLD]: use Depot for building Tilt images in CI --- .github/actions/tilt/action.yaml | 16 ++++++++++++++++ .github/workflows/_python-tests.yml | 3 +++ .github/workflows/pr.yml | 1 + 3 files changed, 20 insertions(+) diff --git a/.github/actions/tilt/action.yaml b/.github/actions/tilt/action.yaml index 84d8d710b4c..0cf4308750c 100644 --- a/.github/actions/tilt/action.yaml +++ b/.github/actions/tilt/action.yaml @@ -1,8 +1,24 @@ name: Start Tilt services description: "This action starts Tilt services" +inputs: + depot-project-id: + description: "Depot project ID" + required: true + depot-token: + description: "Depot token" + required: true runs: using: "composite" steps: + - name: Set up Depot CLI + uses: depot/setup-action@v1 + - name: Use Depot builder for Tilt images + shell: bash + run: | + depot configure-docker --project $DEPOT_PROJECT_ID --token $DEPOT_TOKEN + env: + DEPOT_PROJECT_ID: ${{ inputs.depot-project-id }} + DEPOT_TOKEN: ${{ inputs.depot-token }} - name: Install Tilt shell: bash run: | diff --git a/.github/workflows/_python-tests.yml b/.github/workflows/_python-tests.yml index d4441d7cc97..084905cb1be 100644 --- a/.github/workflows/_python-tests.yml +++ b/.github/workflows/_python-tests.yml @@ -113,6 +113,9 @@ jobs: with: python-version: ${{ matrix.python }} - uses: ./.github/actions/tilt + with: + depot-project-id: ${{ vars.DEPOT_PROJECT_ID }} + depot-token: ${{ secrets.DEPOT_TOKEN }} - name: Test run: bin/cluster-test.sh bash -c 'python -m pytest "${{ matrix.test-globs }}"' shell: bash diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 84054cf66c6..7643e6d1a4a 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -117,6 +117,7 @@ jobs: needs: paths-filter if: needs.paths-filter.outputs.outside-docs == 'true' uses: ./.github/workflows/_python-tests.yml + secrets: inherit with: property_testing_preset: 'fast'