-
Notifications
You must be signed in to change notification settings - Fork 13
/
git-tags.py
executable file
·59 lines (42 loc) · 1.72 KB
/
git-tags.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
import os
connectors = {
"destination-webhook": "0.1.17",
"destination-stripe": "0.1.9",
"destination-slack": "0.1.9",
"destination-hubspot": "0.1.9",
"destination-google-sheets": "0.1.10",
"destination-google-ads": "0.1.9",
"destination-gong": "0.1.9",
"destination-facebook-ads": "0.1.9",
"destination-customer-io": "0.1.9",
"destination-android-push-notifications": "0.1.10",
"source-redshift": "0.1.13",
"source-snowflake": "0.1.13",
"source-postgres": "0.1.15"
}
valmi_core = "0.1.26"
valmi_app_backend = "0.1.39"
valmi_app = "0.1.45"
valmi_dagster = "0.1.5"
def tag_and_push(tag_name, message):
os.system("git tag -a %s -m '%s'" % (tag_name, message))
os.system("git push origin %s" % tag_name)
def tag_valmi_app_backend():
tag_name = 'valmi-app-backend/%s' % valmi_app_backend
os.system("cd valmi-app-backend; git tag -a %s -m '%s'" % (tag_name, 'creating tag %s' % tag_name))
os.system("cd valmi-app-backend; git push origin %s" % tag_name)
def tag_valmi_app():
tag_name = 'valmi-app/%s' % valmi_app
os.system("cd valmi-app; git tag -a %s -m '%s'" % (tag_name, 'creating tag %s' % tag_name))
os.system("cd valmi-app; git push origin %s" % tag_name)
def tag_dagster():
tag_name = 'valmi-dagster/%s' % valmi_dagster
os.system("git tag -a %s -m '%s'" % (tag_name, 'creating tag %s' % tag_name))
os.system("git push origin %s" % tag_name)
for k, v in connectors.items():
print("Tagging connector %s:%s" % (k, v))
tag_and_push("valmi-connector/%s/%s" % (k, v), "Tagging %s:%s" % (k, v))
tag_and_push("valmi-activation/%s" % valmi_core, "Tagging valmi-activation/%s" % valmi_core)
tag_valmi_app()
tag_valmi_app_backend()
tag_dagster()