2019-12-22 14:05:15 +00:00
|
|
|
ARG IMAGE
|
|
|
|
FROM $IMAGE
|
2019-11-30 19:27:08 +00:00
|
|
|
|
2020-08-22 19:28:57 +00:00
|
|
|
ARG UNAME=runner
|
|
|
|
ARG UID=1000
|
|
|
|
ARG GID=1000
|
|
|
|
|
2019-11-30 19:27:08 +00:00
|
|
|
LABEL "com.github.actions.name"="Unity - Builder"
|
|
|
|
LABEL "com.github.actions.description"="Build Unity projects for different platforms."
|
|
|
|
LABEL "com.github.actions.icon"="box"
|
|
|
|
LABEL "com.github.actions.color"="gray-dark"
|
|
|
|
|
|
|
|
LABEL "repository"="http://github.com/webbertakken/unity-actions"
|
|
|
|
LABEL "homepage"="http://github.com/webbertakken/unity-actions"
|
|
|
|
LABEL "maintainer"="Webber Takken <webber@takken.io>"
|
|
|
|
|
2020-08-22 19:28:57 +00:00
|
|
|
RUN bash -c 'mkdir -p /github/{home,workflow,workspace}' && chown $UID:$GID -R /github/
|
|
|
|
RUN getent group $GID || groupadd -g $GID $UNAME
|
|
|
|
RUN id -u $UID &>/dev/null || useradd -m -u $UID -g $GID -s /bin/bash -d /github/home $UNAME
|
|
|
|
|
2019-12-07 22:52:05 +00:00
|
|
|
ADD default-build-script /UnityBuilderAction
|
2020-01-07 22:19:23 +00:00
|
|
|
ADD steps /steps
|
|
|
|
RUN chmod -R +x /steps
|
2019-11-30 19:27:08 +00:00
|
|
|
ADD entrypoint.sh /entrypoint.sh
|
|
|
|
RUN chmod +x /entrypoint.sh
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|
2020-08-22 19:28:57 +00:00
|
|
|
|
|
|
|
USER $UID:$GID
|