Skip to content

Commit 0d196aa

Browse files
committed
add version.json file in CI
1 parent 7171ba8 commit 0d196aa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/github-actions.yml

+3
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ jobs:
5050
steps:
5151
- name: Checkout
5252
uses: actions/checkout@v4
53+
- name: Create version.json file
54+
run: |
55+
echo "{ \"version\": \"$(git rev-parse --short HEAD)\", \"build\": \"$(date)\", \"branch\": \"$(git rev-parse --abbrev-ref HEAD)\", \"tag\": \"$(git name-rev --tags --name-only $(git rev-parse HEAD))\" } " > public/version.json
5356
- name: Publish latest tag for docker image to DockerHub
5457
run: |
5558
echo "$DOCKER_PASSWORD" | docker login $DOCKER_REPOSITORY -u $DOCKER_USERNAME --password-stdin

0 commit comments

Comments
 (0)