From 0713c751d77403250953c194525f6ea77e0ba4ef Mon Sep 17 00:00:00 2001 From: Carson McManus Date: Fri, 13 Oct 2023 11:41:57 -0400 Subject: [PATCH] Add git commit hash to client builds (#1107) * refactor some docker stuff to be more homogeneous * add optional git commit to docker images client builds * add git commit hash to Home and Room view's footers --- client/src/views/Home.vue | 6 ++++++ client/src/views/Room.vue | 6 ++++++ client/vite.config.js | 16 ++++++++++++++++ deploy/monolith.Dockerfile | 3 +++ docker-compose.yml | 3 +++ docker/Dockerfile | 7 ++----- docker/docker-compose.yml | 4 ++++ 7 files changed, 40 insertions(+), 5 deletions(-) diff --git a/client/src/views/Home.vue b/client/src/views/Home.vue index b4996c258..69bcbb232 100644 --- a/client/src/views/Home.vue +++ b/client/src/views/Home.vue @@ -169,6 +169,9 @@ $t("footer.attribution") }} + + {{ gitCommit }} + @@ -185,6 +188,8 @@ export const HomeView = defineComponent({ setup() { const store = useStore(); + const gitCommit = __COMMIT_HASH__; + async function createTempRoom() { await createRoomHelper(store); } @@ -196,6 +201,7 @@ export const HomeView = defineComponent({ return { createTempRoom, cardHeight, + gitCommit, }; }, }); diff --git a/client/src/views/Room.vue b/client/src/views/Room.vue index d702b0e9d..f5241cab6 100644 --- a/client/src/views/Room.vue +++ b/client/src/views/Room.vue @@ -177,6 +177,9 @@ {{ $t("footer.privacy-policy") }} + + {{ gitCommit }} +