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