build: de-dupe goreleaser

I don't really know why I duplicated the build process in
.goreleaser.yaml, when I could have just called the Makefile.
This commit is contained in:
Harvey Tindall
2024-08-06 20:45:11 +01:00
parent 790accc007
commit ef7132bf3d
2 changed files with 3 additions and 41 deletions

View File

@@ -9,7 +9,7 @@ COPY . /opt/build
# && apt-get install build-essential python3-pip -y \
# && (curl -sL https://deb.nodesource.com/setup_current.x | bash -) \
# && apt-get install nodejs
RUN (cd /opt/build; npm i; make precompile INTERNAL=off GOESBUILD=on) \
RUN (cd /opt/build; npm i; make precompile INTERNAL=off GOESBUILD=off) \
&& sed -i 's#id="password_resets-watch_directory" placeholder="/config/jellyfin"#id="password_resets-watch_directory" value="/jf" disabled#g' /opt/build/build/data/html/setup.html
FROM --platform=$BUILDPLATFORM docker.io/golang:latest AS build