diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d0c9cc5..c8c0e1d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,6 +2,9 @@ name: Release and Deploy collection on: workflow_dispatch: + push: + tags: + - 'v*' jobs: releaseanddeploy: diff --git a/roles/nixos_rebuild/templates/script.j2 b/roles/nixos_rebuild/templates/script.j2 index b334787..8c30fa7 100644 --- a/roles/nixos_rebuild/templates/script.j2 +++ b/roles/nixos_rebuild/templates/script.j2 @@ -3,7 +3,7 @@ set -eux {% if deploy_with_nixos_anywhere is defined %} -env ANSIBLE_JSON={{ loc_json | quote }} {{ nix_wrapper }} nix run github:nix-community/nixos-anywhere -- --option impure "" --flake "{{ flake_dir }}#{{ flake_target }}" "{{ target_host }}" +env ANSIBLE_JSON={{ loc_json | quote }} {{ nix_wrapper }} nix run github:nix-community/nixos-anywhere -- --option pure-eval "false" --flake "{{ flake_dir }}#{{ flake_target }}" "{{ target_host }}" {% else %} env ANSIBLE_JSON={{ loc_json | quote }} {{ nix_wrapper }} nix run nixpkgs#nixos-rebuild -- --flake "{{ flake_dir }}#{{ flake_target }}" "switch" --impure --target-host "{{ target_host }}" --show-trace {% endif %}