You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2022/08/17 07:51:45 UTC
[GitHub] [spark] Yikun commented on a diff in pull request #37550: [WIP] Add infra image for lint job
Yikun commented on code in PR #37550:
URL: https://github.com/apache/spark/pull/37550#discussion_r947568387
##########
.github/workflows/build_and_test.yml:
##########
@@ -300,16 +300,27 @@ jobs:
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- - name: Build and push
+ - name: Build and push (Infra)
id: docker_build
uses: docker/build-push-action@v2
with:
- context: ./dev/infra/
+ file: ./dev/infra/Dockerfile
push: true
tags: |
${{ needs.precondition.outputs.image_url }}
# Use the infra image cache to speed up
cache-from: type=registry,ref=ghcr.io/apache/spark/apache-spark-github-action-image-cache:${{ inputs.branch }}
+ - name: Build and push (Lint)
+ id: lint_docker_build
+ uses: docker/build-push-action@v2
+ with:
+ file: ./dev/infra/lint.Dockerfile
+ push: true
+ tags: |
+ ${{ needs.precondition.outputs.image_url }}-lint
+ build-args: BASE_IMG=ghcr.io/apache/spark/apache-spark-github-action-image-cache:${{ inputs.branch }}-static
Review Comment:
This might bring some complex and issue when first commit merge after cut down branch because base image haven't generated yet. But all in one infra image doesn't have this problem, becuase only cache not working in first commit after cut down branch.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org