diff --git a/.github/workflows/build_infra_images_cache.yml b/.github/workflows/build_infra_images_cache.yml index c35b34e201ec8..d5cbb15bf3122 100644 --- a/.github/workflows/build_infra_images_cache.yml +++ b/.github/workflows/build_infra_images_cache.yml @@ -20,6 +20,7 @@ name: Build / Cache base image on: + pull_request: push: branches: - 'master' @@ -28,7 +29,7 @@ on: - '.github/workflows/build_infra_images_cache.yml' jobs: main: - if: github.repository == 'apache/spark' + if: github.repository == 'yikun/spark' runs-on: ubuntu-latest steps: - name: Checkout Spark repository @@ -49,8 +50,8 @@ jobs: with: context: ./dev/infra/ push: true - tags: ghcr.io/apache/spark/apache-spark-github-action-image-cache:${{ github.ref_name }} - cache-from: type=registry,ref=ghcr.io/apache/spark/apache-spark-github-action-image-cache:${{ github.ref_name }} - cache-to: type=registry,ref=ghcr.io/apache/spark/apache-spark-github-action-image-cache:${{ github.ref_name }},mode=max + tags: ghcr.io/yikun/apache-spark-github-action-image-cache:master-static + cache-from: type=registry,ref=ghcr.io/apache/spark/apache-spark-github-action-image-cache:master + cache-to: type=registry,ref=ghcr.io/yikun/apache-spark-github-action-image-cache:master,mode=max - name: Image digest run: echo ${{ steps.docker_build.outputs.digest }}