Skip to content

Commit 75e2b7b

Browse files
committed
Save SHA to public folder
This allows us to GET `/sha` to see which version of the code is deployed to an env.
1 parent 1df1589 commit 75e2b7b

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
@@ -65,6 +65,8 @@ jobs:
6565
uses: actions/checkout@v4
6666
with:
6767
ref: ${{ inputs.git-sha || github.sha }}
68+
- name: Write build SHA
69+
run: git rev-parse HEAD > public/sha
6870
- name: Build Docker image
6971
run: docker build -t "mavis:latest" .
7072
- name: Save Docker image

0 commit comments

Comments
 (0)