cannot use templates in deployment hooks