should work
All checks were successful
Deploy Containers / Prepare (push) Successful in 3s

This commit is contained in:
2025-07-29 21:30:05 -04:00
parent ee9863c756
commit 59e0fbbbe2

View File

@@ -4,14 +4,13 @@
echo $1 $2
new_tasks=($(git diff --name-only $1 $2 | grep '\.yml$'))
echo $new_tasks
if [ ! -z "$new_tasks" ]; then
for task in "${new_tasks[@]}"; do
ansible_tag=$(echo "$task" | awk '{print $2}')
if [[ "$tag" != "all.yml" && "$tag" != "all.template.yml" && "$tag" != "main.yml" ]] ; then
tag=${tag%.*}_deploy
ansible-playbook ../main.yml --tags "$tag" --vault-password-file ~/.vault_password.txt
ansible-playbook main.yml --tags "$tag" --vault-password-file ~/.vault_password.txt
fi
done
fi