From e201aed52688e34327a8184e3c886613be76a41a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9D=D0=B8=D0=BA=D0=B8=D1=82=D0=B0=20=D0=9A=D1=80=D1=83?= =?UTF-8?q?=D0=B3=D0=BB=D0=B8=D1=86=D0=BA=D0=B8=D0=B9?= Date: Wed, 1 Oct 2025 23:56:13 +0600 Subject: [PATCH] #3 update --- .gitea/workflows/deploy-client.yml | 2 +- client/Dockerfile | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy-client.yml b/.gitea/workflows/deploy-client.yml index 2ea4f80..3751c3f 100644 --- a/.gitea/workflows/deploy-client.yml +++ b/.gitea/workflows/deploy-client.yml @@ -24,7 +24,7 @@ jobs: persist-credentials: false - name: Build - run: docker build -t chad-client ./client + run: docker build -t chad-client ./client --build-arg COMMIT_SHA=${{ vars.GITEA_SHA }} - name: Stop old container run: docker rm -f chad-client || true diff --git a/client/Dockerfile b/client/Dockerfile index b8a5458..2abfae5 100644 --- a/client/Dockerfile +++ b/client/Dockerfile @@ -9,6 +9,9 @@ COPY package.json yarn.lock .yarnrc.yml ./ RUN yarn install COPY . . + +ENV COMMIT_SHA=$COMMIT_SHA + RUN yarn generate FROM nginx:stable-alpine