From 863afa8018c1110b14d8e7760465001574b1cea7 Mon Sep 17 00:00:00 2001 From: Oliver Chang Date: Fri, 4 Jul 2025 09:17:43 +1000 Subject: [PATCH 1/2] Add indexer_build workflow. --- .github/workflows/indexer_build.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/indexer_build.yml diff --git a/.github/workflows/indexer_build.yml b/.github/workflows/indexer_build.yml new file mode 100644 index 000000000000..8a7079aabba2 --- /dev/null +++ b/.github/workflows/indexer_build.yml @@ -0,0 +1,29 @@ +name: indexer build tests + +permissions: + contents: read + +on: + pull_request: + paths: + - 'infra/base-images/indexer/**' + - '.github/workflows/indexer_build.yml' + +jobs: + 'indexer': + runs-on: ubuntu-latest + permissions: + actions: write + concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + steps: + - uses: actions/checkout@v4 + with: # Needed for git diff to work. (get_changed_files) + fetch-depth: 0 + - run: | + git symbolic-ref refs/remotes/origin/HEAD refs/remotes/origin/master + + - name: Build indexer + run: docker build -t indexer . + working-directory: 'infra/base-images/indexer' \ No newline at end of file From aa5f29c1a5556998f20a7f7b91b0348b9f6af733 Mon Sep 17 00:00:00 2001 From: Oliver Chang Date: Fri, 4 Jul 2025 09:25:31 +1000 Subject: [PATCH 2/2] fix path --- .github/workflows/indexer_build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/indexer_build.yml b/.github/workflows/indexer_build.yml index 8a7079aabba2..9ad425b3e812 100644 --- a/.github/workflows/indexer_build.yml +++ b/.github/workflows/indexer_build.yml @@ -6,11 +6,11 @@ permissions: on: pull_request: paths: - - 'infra/base-images/indexer/**' + - 'infra/indexer/**' - '.github/workflows/indexer_build.yml' jobs: - 'indexer': + indexer: runs-on: ubuntu-latest permissions: actions: write @@ -26,4 +26,4 @@ jobs: - name: Build indexer run: docker build -t indexer . - working-directory: 'infra/base-images/indexer' \ No newline at end of file + working-directory: 'infra/indexer' \ No newline at end of file