mirror of
https://github.com/bunkerity/bunkerized-nginx
synced 2023-12-13 21:30:18 +01:00
autoconf - fix wrong config update
This commit is contained in:
parent
cb4c99f456
commit
6e1660cd00
7
.github/workflows/staging-delete-infra.yml
vendored
7
.github/workflows/staging-delete-infra.yml
vendored
|
@ -35,7 +35,12 @@ jobs:
|
|||
env:
|
||||
SECRET_KEY: ${{ secrets.SECRET_KEY }}
|
||||
- if: inputs.TYPE == 'k8s'
|
||||
run: cd /tmp/${{ inputs.TYPE }} && terraform state rm kubernetes_secret.reg
|
||||
run: |
|
||||
cd /tmp/${{ inputs.TYPE }}
|
||||
terraform state rm kubernetes_secret.reg
|
||||
terraform state rm kubectl_manifest.lb
|
||||
terraform state rm local_sensitive_file.lb_yml
|
||||
terraform state rm local_sensitive_file.kubeconfig
|
||||
- uses: azure/setup-kubectl@v3
|
||||
if: inputs.TYPE == 'k8s'
|
||||
# Remove infra
|
||||
|
|
|
@ -79,9 +79,10 @@ class Config(ConfigCaller):
|
|||
updates["configs"] = True
|
||||
changes.append("custom_configs")
|
||||
if updates["instances"] or updates["services"]:
|
||||
old_env = self.__get_full_env()
|
||||
self.__config = self.__get_full_env()
|
||||
if self.__config != old_env or first:
|
||||
old_env = deepcopy(self.__config)
|
||||
new_env = self.__get_full_env()
|
||||
if old_env != new_env or first:
|
||||
self.__config = new_env
|
||||
updates["config"] = True
|
||||
changes.append("config")
|
||||
|
||||
|
|
Loading…
Reference in a new issue