We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 020918c commit ff32a9bCopy full SHA for ff32a9b
1 file changed
ansible/roles/git_repo/tasks/main.yml
@@ -1,4 +1,9 @@
1
---
2
+- name: Ensure Tag Deploy For Prod
3
+ tags: deploy
4
+ when: node_env=="production-delta" and not git_branch | match("^v([0-9]+)\.([0-9]+)\.([0-9]+)$")
5
+ fail: msg="only tag can be deployed on prod not {{ git_branch }}"
6
+
7
- name: Display Git Repo Name
8
debug:
9
msg: "application Installed: {{ app_name }}, branch : {{ git_branch }} "
0 commit comments