no need for a token

This commit is contained in:
Hyatt 2022-07-06 21:53:23 -05:00
parent 470ffd59dc
commit df13ad3006
Signed by: nhyatt
GPG Key ID: C50D0BBB5BC40BEA

View File

@ -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 <spider@smoothnet.org>"
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}",
],
)
}
}