add option to choose profile
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Aaron Riedel 2023-02-15 01:20:42 +01:00
parent b6784056cf
commit 1bddf19134
Signed by: aaron
GPG key ID: 643004654D40D577

View file

@ -6,6 +6,7 @@ ENV GROUP dockergroup
ENV USER docker
ENV HOMEDIR "/home/${USER}"
ENV PATH ${HOMEDIR}/.local/bin:$PATH
ENV PROFILE production
RUN addgroup -S "${GROUP}" && adduser -S "${USER}" -G "${GROUP}"
USER ${USER}
WORKDIR ${HOMEDIR}
@ -14,4 +15,4 @@ RUN pip install --no-cache-dir -r requirements.txt
RUN rm requirements.txt
RUN git config --global --add safe.directory /drone/src
CMD [ "ansible-lint" ]
CMD [ "ansible-lint", "--profile $PROFILE" ]