@@ -30,7 +30,6 @@ tabBold := $(tab)$(boldText)
30
30
help : # # Show this help.
31
31
@awk ' BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {sub("\\\\n",sprintf("\n%22c"," "), $$2);printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST )
32
32
33
-
34
33
test : banner # # Preview the modification
35
34
@echo -e $(boldText ) " \n\n##########" $(tab ) DNS Control: preview$(tabNormal ) " \n"
36
35
@$(dnsControl ) preview
@@ -42,22 +41,9 @@ build: banner ## Push the update to the nameservers
42
41
@printf " \n\n"
43
42
44
43
secret : # # Inject secret via 1Password
45
- op inject -i ./lib/creds.json.tpl -o creds.json
46
-
47
- ddns : # # ISPs dynamically update their customer’s IP addresses, let's identify the current one
48
- @# https://developers.cloudflare.com/dns/manage-dns-records/how-to/managing-dynamic-ip-addresses
49
- curl -o ip.json ' https://api.ipgeolocation.io/getip'
50
-
51
- encrypt : # # Encrypt config file with a secret
52
- gpg --batch --passphrase $(secret ) --symmetric config.js
53
- rm config.js
54
- ls config.*
55
-
56
- decrypt : # # Decrypt config file
57
- gpg --batch --output config.js --passphrase $(secret ) --decrypt config.js.gpg
58
- ls config.*
44
+ op inject -i creds.json.tpl -o creds.json
59
45
60
- gitCommit :
46
+ commit :
61
47
$(MAKE ) triage
62
48
@echo -e $(boldText ) " \n\n##########" $(tab ) Git add ${configFile} $(tabNormal ) " \n"
63
49
git add ${configFile}
@@ -67,7 +53,7 @@ gitCommit:
67
53
git push
68
54
@printf " \n\n"
69
55
70
- gitArchive :
56
+ archive :
71
57
$(MAKE ) banner
72
58
$(MAKE ) pull
73
59
@echo -e $(boldText ) " \n\n##########" $(tab ) Archive ${configFile} $(tabNormal ) " \n"
@@ -81,6 +67,16 @@ gitArchive:
81
67
@printf " \n\n"
82
68
$(MAKE ) updateDNS
83
69
70
+ triage :
71
+ $(MAKE ) ticket
72
+ @echo -e $(boldText ) " \n\n##########" $(tab ) Git add ${configFile} $(tabNormal ) " \n"
73
+ git add ${configFile}
74
+ @echo -e $(boldText ) " \n\n##########" $(tab ) Git commit: $(gitMsg )$(tabNormal ) " \n"
75
+ git commit -m$(gitMsg )
76
+ @echo -e $(boldText ) " \n\n##########" $(tab ) Git push$(tabNormal ) " \n"
77
+ git push
78
+ @printf " \n\n"
79
+
84
80
clean : banner
85
81
@echo -e $(boldText ) " \n##########" $(tab ) Remove dnsConfig.json and archive subFolder" \n" $(normalText )
86
82
@$(RM ) dnsConfig.json spfcache.json
@@ -97,7 +93,7 @@ banner:
97
93
@printf " ###################################################################################################\n\n"
98
94
99
95
100
- triage :
96
+ ticket :
101
97
ifdef ticket
102
98
gitMsg = "Update DNS configurations with ticket \# "$(ticket)
103
99
else ifdef msg
0 commit comments