From 75092d255d1de3da6d26a4a013f245f209f7951b Mon Sep 17 00:00:00 2001 From: Liam Date: Fri, 26 Apr 2024 00:12:22 +0100 Subject: [PATCH] pass the commit hash through --- Dockerfile | 4 ++++ webpack.config.js | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index db4c6db..08cf255 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,6 +21,10 @@ WORKDIR /app COPY --from=deps /app/node_modules ./node_modules COPY . . +# Get the git commit hash +ARG GIT_REV +ENV GIT_REV ${GIT_REV} + # Set the environment to production ENV NODE_ENV=production diff --git a/webpack.config.js b/webpack.config.js index 765cf38..5b2b5f1 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -20,8 +20,8 @@ module.exports = { plugins: [ new UserscriptPlugin({ metajs: false, - downloadBaseURL: 'https://ssu.fascinated.cc/scripts', - updateBaseURL: 'https://ssu.fascinated.cc/scripts', + downloadBaseURL: 'https://ssu.fascinated.cc/scripts/', + updateBaseURL: 'https://ssu.fascinated.cc/scripts/', headers: { name: "ScoreSaber Utils", author: "fascinated7 (discord)",