add option to choose profile
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
b6784056cf
commit
1bddf19134
1 changed files with 2 additions and 1 deletions
|
@ -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" ]
|
Loading…
Reference in a new issue