fix: убрать деплой core-git и apply CT 904 с раннера
ansible-core-mon / deploy (push) Successful in 28s
ansible-core-net / deploy (push) Successful in 1m0s
ansible-core-secrets / deploy (push) Successful in 18s
ansible-ger-nod-02 / deploy (push) Successful in 1m14s
ansible-opnsense / deploy (push) Successful in 8s
ansible-rus-central / deploy (push) Successful in 57s

Раннер живёт на этой машине, job не может её пересобирать.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
karpenokandCursor committed 2026-11-13 22:51:36 +07:00
1 parent f1838991bd
commit db92435117
6 files changed
+19 -63

No files matched your search

+7 -8
View File
@@ -11,13 +11,12 @@ on:
- netcore
default: netcore
action:
description: 'Действие Terraform (plan / apply / import-core-git)'
description: 'Действие Terraform (plan / apply). CT 904 core-git этот job не меняет.'
required: true
type: choice
options:
- plan
- apply
- import-core-git
default: plan
jobs:
@@ -85,14 +84,14 @@ jobs:
-backend-config="unlock_method=DELETE" \
-backend-config="retry_wait_min=5"
# Job крутится на CT 904. Менять этот контейнер из него нельзя:
# apply перезапустит машину и оборвёт сам job.
exclude=(-exclude=proxmox_virtual_environment_container.core_git)
if [ "${ACTION}" = "plan" ]; then
terraform plan
terraform plan "${exclude[@]}"
elif [ "${ACTION}" = "apply" ]; then
terraform apply -auto-approve
elif [ "${ACTION}" = "import-core-git" ]; then
# CT 904 уже создан; ID в bpg/proxmox: <node>/<vmid>
terraform import 'proxmox_virtual_environment_container.core_git' 'netcore/904'
terraform plan
terraform apply -auto-approve "${exclude[@]}"
else
echo "Неизвестное действие: ${ACTION}" >&2
exit 2