try to fix issues
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Aaron Riedel 2023-02-15 01:42:52 +01:00
parent 1bddf19134
commit 2ed79d3010
Signed by: aaron
GPG key ID: 643004654D40D577
2 changed files with 10 additions and 2 deletions

View file

@ -6,8 +6,10 @@ ENV GROUP dockergroup
ENV USER docker
ENV HOMEDIR "/home/${USER}"
ENV PATH ${HOMEDIR}/.local/bin:$PATH
ENV PROFILE production
ENV PLUGIN_PROFILE production
RUN addgroup -S "${GROUP}" && adduser -S "${USER}" -G "${GROUP}"
COPY script.sh /bin/
RUN chmod +x /bin/script.sh
USER ${USER}
WORKDIR ${HOMEDIR}
COPY requirements.txt .
@ -15,4 +17,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", "--profile $PROFILE" ]
ENTRYPOINT [ "script.sh" ]

6
script.sh Normal file
View file

@ -0,0 +1,6 @@
#!/bin/sh
echo "Starting ansible linter by Aaron Riedel"
echo ""
cd /drone/src
ansible-lint --profile $PLUGIN_PROFILE