Skip to content

Commit 1df1589

Browse files
committed
Use inputs.git-sha to checkout out code for build
Otherwise we always build from using the workflow ref, but tag using the deploy sha.
1 parent 58eedcd commit 1df1589

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/build-and-push-image.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ jobs:
6363
steps:
6464
- name: Checkout code
6565
uses: actions/checkout@v4
66+
with:
67+
ref: ${{ inputs.git-sha || github.sha }}
6668
- name: Build Docker image
6769
run: docker build -t "mavis:latest" .
6870
- name: Save Docker image

0 commit comments

Comments
 (0)