-
Notifications
You must be signed in to change notification settings - Fork 53
[SPARK-40746][INFRA] Switch topull_request_target and fix workflow
#5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -41,6 +41,8 @@ on: | |
| jobs: | ||
| main: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| packages: write | ||
| strategy: | ||
| matrix: | ||
| spark_version: | ||
|
|
@@ -70,7 +72,9 @@ jobs: | |
| - name: Generate tags | ||
| run: | | ||
| TAG=scala${{ matrix.scala_version }}-java${{ matrix.java_version }}-${{ matrix.image_suffix }} | ||
|
|
||
| # The pull_request_target job: | ||
Yikun marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| # 1. Use the `apache` in apache repo (push/pr). | ||
| # 2. Use the fork repo owner in fork repo PR. | ||
| REPO_OWNER=$(echo "${{ github.repository_owner }}" | tr '[:upper:]' '[:lower:]') | ||
| TEST_REPO=ghcr.io/$REPO_OWNER/spark-docker | ||
| IMAGE_NAME=spark | ||
|
|
@@ -98,7 +102,7 @@ jobs: | |
| with: | ||
| context: ${{ env.IMAGE_PATH }} | ||
| push: true | ||
| tags: ${{ env.TEST_REPO }}:${{ env.UNIQUE_IMAGE_TAG }} | ||
| tags: ${{ env.TEST_REPO }}/${{ env.IMAGE_NAME }}:${{ env.UNIQUE_IMAGE_TAG }} | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Emm, this might has some issue when multiple concurrency jobs push the same tag. Of course, we could use action concurrency or add some random hash tag to protect. But after some consideration, I guess what we need to do just remove push in this PR push: trueAnd change it to local build in minikube docker (don't do a real push) when we adding K8s test.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This PR is replaced by #7 |
||
| platforms: linux/amd64,linux/arm64 | ||
|
|
||
| - name: Image digest | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this needed ? This workflow just delegates to
main.ymlwhere this is also specified.It does not do any harm either!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's needed see also: apache/spark#38145