Skip to content

Commit

Permalink
chore: added lint step in entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
OldTyT authored Nov 21, 2023
1 parent 86ec149 commit a4b83ff
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ echo "$SSH_KEY_PRIVATE"|base64 -d > /root/.ssh/id_rsa
chmod 600 /root/.ssh/id_rsa
test -f requirements.yml && ansible-galaxy install -r requirements.yml

if [ "$TYPE" = "lint" ]; then
ansible-lint && exit
fi
if [ "$TYPE" = "diff" ]; then
ansible-playbook --check --diff -i ./inventory.yml playbook.yml && exit
fi
Expand Down

0 comments on commit a4b83ff

Please sign in to comment.