build(npm): update gulp-haxetoolt

This commit is contained in:
2026-11-11 22:32:04 +03:00
parent eeee6e1f18
commit 8787507db2
13 changed files with 105 additions and 1581 deletions
+6 -6
View File
@@ -1,8 +1,8 @@
FROM ubuntu:noble AS base
FROM ubuntu:resolute AS base
RUN apt update && apt install -y \
nodejs \
npm \
openjdk-11-jre \
openjdk-17-jre \
protobuf-compiler \
jq
RUN node -v
@@ -14,18 +14,18 @@ WORKDIR /app
COPY package.json package-lock.json ./
RUN --mount=type=cache,target=/root/.npm \
npm ci
COPY gulpfile.ts protohx.json ./
COPY haxetool.json protohx.json ./
COPY config.example.json ./config.example.json
RUN --mount=type=secret,id=KEY_STORE \
cat /run/secrets/KEY_STORE > ./key.jks
RUN --mount=type=secret,id=KEY_PASS \
jq --arg key_pass "$(cat /run/secrets/KEY_PASS)" \
'.SdkDir = "/sdk" | .PublishDir = "/app/publish" | .Key.store = "key.jks" | .Key.pass = $key_pass' \
'.SdkDir = "/sdk" | .Key.store = "key.jks" | .Key.pass = $key_pass' \
config.example.json > config.json
COPY src ./src
COPY dependencies ./dependencies
VOLUME ["/sdk", "/app/build", "/app/target", "/app/publish", "/app/src-gen"]
CMD ["npx", "gulp", "default"]
VOLUME ["/sdk", "/app/build", "/app/target", "/app/src-gen"]
CMD ["npm", "run", "build"]
FROM hello-world AS web
ARG PROJECT_NAME