Deploy: git safe.directory für Rollout setzen
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
e792c4d4f5
commit
936e25e162
@ -21,6 +21,7 @@ resource "terraform_data" "app_deploy" {
|
|||||||
inline = [
|
inline = [
|
||||||
"set -e",
|
"set -e",
|
||||||
"cd /opt/vcard4",
|
"cd /opt/vcard4",
|
||||||
|
"git config --global --add safe.directory /opt/vcard4",
|
||||||
"git fetch --depth 1 origin ${var.repo_branch}",
|
"git fetch --depth 1 origin ${var.repo_branch}",
|
||||||
"git reset --hard origin/${var.repo_branch}",
|
"git reset --hard origin/${var.repo_branch}",
|
||||||
"DOMAIN='${var.domain}' RUN_MIGRATIONS='${count.index == 0 ? "true" : "false"}' bash /opt/vcard4/deploy/update.sh",
|
"DOMAIN='${var.domain}' RUN_MIGRATIONS='${count.index == 0 ? "true" : "false"}' bash /opt/vcard4/deploy/update.sh",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user