Skip to content

Commit fba4ce5

Browse files
committed
add git SHA to version so we know which state is deployed exactly
1 parent f364b52 commit fba4ce5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/docker.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ jobs:
1616
echo "SHORT_SHA=$SHORT_SHA" >> $GITHUB_ENV
1717
echo "DOCKER_TAG=${{ github.ref_name }}-$SHORT_SHA" >> $GITHUB_ENV
1818
19+
# also include SHA in version string
20+
sed -ri 's/"version": "(.*)"/"version": "\1-$SHORT_SHA"/g' package.json
21+
1922
- name: Login to Docker Hub
2023
uses: docker/login-action@v3
2124
with:

0 commit comments

Comments
 (0)