diff --git a/build-projectzomboid.jenkins b/build-projectzomboid.jenkins index cba516a..b1a0947 100644 --- a/build-projectzomboid.jenkins +++ b/build-projectzomboid.jenkins @@ -5,8 +5,6 @@ def repositoryCreds = "harbor-repository-creds" def workspace def dockerFile -def steamSecret = 'steam-login-token' -def steamToken def label = "kubernetes-${UUID.randomUUID().toString()}" def templateName = "pipeline-worker" @@ -34,25 +32,17 @@ FROM ${repository}/dockerhub/cm2network/steamcmd:latest LABEL org.opencontainers.image.authors="The_Spider " LABEL org.opencontainers.image.title="projectzomboid" -ARG STEAM_TOKEN - EXPOSE 16261/udp EXPOSE 27015/udp RUN /home/steam/steamcmd/steamcmd.sh +quit && \\ - /home/steam/steamcmd/steamcmd.sh +force_install_dir /home/steam/ProjectZomboid +sv_setsteamaccount "\${STEAM_TOKEN}" +app_update 380870 validate +quit + /home/steam/steamcmd/steamcmd.sh +force_install_dir /home/steam/ProjectZomboid +login anonymous +app_update 380870 validate +quit WORKDIR /home/steam/ProjectZomboid ENTRYPOINT ["/bin/bash", "-c", "/home/steam/ProjectZomboid/start-server.sh"] """ - withCredentials([string( - credentialsId: steamSecret, - variable: "token" - )]) { - steamToken = token - } } } } @@ -66,9 +56,6 @@ ENTRYPOINT ["/bin/bash", "-c", "/home/steam/ProjectZomboid/start-server.sh"] imageDest: "${repository}/library/project-zomboid:latest", dockerFile: dockerFile, repoCreds: repositoryCreds, - [ - "STEAM_TOKEN=${steamToken}", - ], ) } }