-
-###### Pull environment and deployment from remote
-pull_deployment:
- @if $(NIXOPS) info -d $(NIXOPS_DEPLOYMENT) 2>/dev/null >/dev/null ; then \
- echo "This will remove your current deployment file and recreate it!. Continue? [y/N]" && \
- read y && \
- [ "$$y" = "y" -o "$$y" = "Y" ] && \
- $(NIXOPS) delete --force -d $(NIXOPS_DEPLOYMENT); \
- fi
- pass show Nixops/Deployment | $(NIXOPS) import
- $(NIXOPS) modify -d $(NIXOPS_DEPLOYMENT) "$$(pwd)/default.nix"
-.PHONY: pull_deployment
-
-deployment_is_set:
- $(NIXOPS) info -d $(NIXOPS_DEPLOYMENT) 2>/dev/null >/dev/null
-.PHONY: deployment_is_set
-
-###### Push deployment information to password store
-push_deployment:
- $(NIXOPS) export | pass insert -m Nixops/Deployment
-.PHONY: push