feat: Update build.sbt and Dockerfile for improved GitHub credentials handling

This commit is contained in:
2026-01-07 11:47:31 +01:00
parent 5f9ef2beb0
commit 25dd9264b5
2 changed files with 2 additions and 6 deletions

View File

@@ -1,10 +1,6 @@
# === Stage 1: Build the Play application === # === Stage 1: Build the Play application ===
FROM --platform=$BUILDPLATFORM sbtscala/scala-sbt:eclipse-temurin-alpine-22_36_1.10.3_3.5.1 AS builder FROM --platform=$BUILDPLATFORM sbtscala/scala-sbt:eclipse-temurin-alpine-22_36_1.10.3_3.5.1 AS builder
ARG GITHUB_USER
ARG GITHUB_TOKEN
WORKDIR /app WORKDIR /app
# Install Node.js and Less CSS preprocessor # Install Node.js and Less CSS preprocessor

View File

@@ -40,8 +40,8 @@ lazy val knockoutwhistweb = project.in(file("knockoutwhistweb"))
credentials += Credentials( credentials += Credentials(
"GitHub Package Registry", "GitHub Package Registry",
"maven.pkg.github.com", "maven.pkg.github.com",
sys.env("GITHUB_USER"), sys.env.getOrElse("GITHUB_USER", sys.error("GITHUB_USER not set")),
sys.env("GITHUB_TOKEN") sys.env.getOrElse("GITHUB_TOKEN", sys.error("GITHUB_TOKEN not set"))
), ),
commonSettings, commonSettings,