Skip to content

Commit 9310c92

Browse files
authored
Update build-deliver.yaml with git vcs var APP_VERSION_STRING
1 parent 1acd9a3 commit 9310c92

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/build-deliver.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ jobs:
99
steps:
1010
- name: Checkout git commit
1111
uses: actions/checkout@main
12+
with:
13+
fetch-depth: 0
14+
15+
- name: Set environment variable for version from git output
16+
run: echo "APP_VERSION_STRING=$(git describe --always --tags)" >> $GITHUB_ENV
1217

1318
- name: Publish server images to GitHub Container Registry
1419
# TODO: pin to hash
@@ -25,6 +30,7 @@ jobs:
2530

2631
# create docker image tags to match git tags
2732
tag_names: true
33+
buildargs: VITE_APP_VERSION_STRING
2834

2935
# build Dockerfile in server/ service directory
3036
workdir: server

0 commit comments

Comments
 (0)