wroooong spot
All checks were successful
Deploy Containers / Prepare (push) Successful in 14s

This commit is contained in:
2025-07-29 21:48:33 -04:00
parent 5060bbfcf6
commit 3b5c4d5fce

View File

@@ -1,13 +1,14 @@
#!/bin/bash #!/bin/bash
echo "Redeploying Caddy.."
ansible-playbook main.yml --tags "caddy_deploy" --vault-password-file ~/.vault_pass.txt
# all new/updated tasks in the diff # all new/updated tasks in the diff
new_tasks=($(git diff --name-only $1 $2 | grep '\.yml$')) new_tasks=($(git diff --name-only $1 $2 | grep '\.yml$'))
echo $new_tasks echo $new_tasks
echo $1 $2 echo $1 $2
if [ ! -z "$new_tasks" ]; then if [ ! -z "$new_tasks" ]; then
ansible-playbook main.yml --tags "caddy_deploy" --vault-password-file ~/.vault_pass.txt
for task in "${new_tasks[@]}"; do for task in "${new_tasks[@]}"; do
ansible_tag=$(echo "$task" | awk -F/ '{print $2}') ansible_tag=$(echo "$task" | awk -F/ '{print $2}')
if [[ "$tag" != "all.yml" && "$tag" != "all.template.yml" && "$tag" != "main.yml" ]] ; then if [[ "$tag" != "all.yml" && "$tag" != "all.template.yml" && "$tag" != "main.yml" ]] ; then