This commit is contained in:
2023-03-25 21:53:41 -07:00
parent 40fd87e4b9
commit ad98e1b5b8
3 changed files with 31 additions and 13 deletions

View File

@@ -2,10 +2,6 @@
ARG IMAGE=unityci/base:latest
FROM ${IMAGE}
ARG SERIAL
ARG USERNAME
ARG PASSWORD
RUN apt update
RUN apt install -y wget chromium-browser
@@ -16,6 +12,9 @@ COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh
COPY scripts/. /scripts
RUN bash /scripts/activate_license.sh ${SERIAL} ${USERNAME} ${PASSWORD}
RUN --mount=type=secret,id=SERIAL \
--mount=type=secret,id=USERNAME \
--mount=type=secret,id=PASSWORD \
bash /scripts/activate_license.sh
ENTRYPOINT ["/entrypoint.sh"]