-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: fixed the checkout action in build docker image
- Loading branch information
1 parent
0764789
commit f7c0b05
Showing
1 changed file
with
4 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,6 +38,7 @@ jobs: | |
- name: Checkout | ||
uses: actions/[email protected] | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
fetch-depth: 1 | ||
|
||
- name: Setup Docker Buildx | ||
|
@@ -77,7 +78,7 @@ jobs: | |
linux/arm64 | ||
build-args: | | ||
version=${{ inputs.img_tag }}-arm64 | ||
GIT_COMMIT_SHA=${{ github.sha }} | ||
GIT_COMMIT_SHA=${{ github.event.pull_request.head.sha }} | ||
# cache-from: type=gha | ||
# cache-to: type=gha,mode=max | ||
|
||
|
@@ -88,6 +89,7 @@ jobs: | |
- name: Checkout | ||
uses: actions/[email protected] | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
fetch-depth: 1 | ||
|
||
- name: Setup Docker Buildx | ||
|
@@ -127,7 +129,7 @@ jobs: | |
linux/amd64 | ||
build-args: | | ||
version=${{ inputs.img_tag }}-amd64 | ||
GIT_COMMIT_SHA=${{ github.sha }} | ||
GIT_COMMIT_SHA=${{ github.event.pull_request.head.sha }} | ||
# cache-from: type=gha | ||
# cache-to: type=gha,mode=max | ||
|
||
|