move gitea to role, fix deploy script
Some checks failed
Deploy Containers / Prepare (push) Failing after 12s

This commit is contained in:
2025-07-29 21:16:54 -04:00
parent 62ef1172eb
commit c8cceee3a9
6 changed files with 241 additions and 205 deletions

View File

@@ -3,13 +3,14 @@
# all new/updated tasks in the diff
echo $1 $2
new_tasks = ($(git diff --name-only $1 $2 | grep '\.yml$'))
new_tasks=($(git diff --name-only $1 $2 | grep '\.yml$'))
if [! -z "$new_tasks"]; then
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" ]]
tag = ${tag%.*}_deploy
ansible-playbook --tags "$tag" --vault-password-file ~/.vault_password.txt
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
fi
done
done
fi