Merge pull request #26 from svc-design/ci-runner-alpine-ansible-lint

Ci runner alpine ansible lint
This commit is contained in:
shenlan 2024-04-13 18:05:05 +08:00 committed by GitHub
commit e8d3a357ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 13 additions and 2 deletions

View File

@ -27,5 +27,6 @@ RUN apk add --no-cache bash git python3 py3-pip jq \
# Set work directory
WORKDIR /src
# Define an entrypoint
ENTRYPOINT ["/bin/bash"]
ADD entrypoint.sh /
ENTRYPOINT [ "/entrypoint.sh" ]

View File

@ -0,0 +1,10 @@
#!/bin/sh
set -e
# check if there was a command passed
# required by Jenkins Docker plugin: https://github.com/docker-library/official-images#consistency
# https://issues.jenkins.io/browse/JENKINS-51307?focusedCommentId=341121&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel
if [ "$1" ]; then
# execute it
exec "$@"
fi