@@ -209,58 +209,6 @@ cloudflared-darwin-amd64.tgz: cloudflared
209209 tar czf cloudflared-darwin-amd64.tgz cloudflared
210210 rm cloudflared
211211
212- .PHONY : cloudflared-junos
213- cloudflared-junos : cloudflared jetez-certificate.pem jetez-key.pem
214- jetez --source . \
215- -j jet.yaml \
216- --key jetez-key.pem \
217- --cert jetez-certificate.pem \
218- --version $(VERSION )
219- rm jetez-* .pem
220-
221- jetez-certificate.pem :
222- ifndef JETEZ_CERT
223- $(error JETEZ_CERT not defined)
224- endif
225- @echo "Writing JetEZ certificate"
226- @echo "$$JETEZ_CERT" > jetez-certificate.pem
227-
228- jetez-key.pem :
229- ifndef JETEZ_KEY
230- $(error JETEZ_KEY not defined)
231- endif
232- @echo "Writing JetEZ key"
233- @echo "$$JETEZ_KEY" > jetez-key.pem
234-
235- .PHONY : publish-cloudflared-junos
236- publish-cloudflared-junos : cloudflared-junos cloudflared-x86-64.latest.s3
237- ifndef S3_ENDPOINT
238- $(error S3_HOST not defined)
239- endif
240- ifndef S3_URI
241- $(error S3_URI not defined)
242- endif
243- ifndef S3_ACCESS_KEY
244- $(error S3_ACCESS_KEY not defined)
245- endif
246- ifndef S3_SECRET_KEY
247- $(error S3_SECRET_KEY not defined)
248- endif
249- sha256sum cloudflared-x86-64-$(VERSION).tgz | awk '{printf $$1}' > cloudflared-x86-64-$(VERSION).tgz.shasum
250- s4cmd --endpoint-url $(S3_ENDPOINT) --force --API-GrantRead=uri=http://acs.amazonaws.com/groups/global/AllUsers \
251- put cloudflared-x86-64-$(VERSION).tgz $(S3_URI)/cloudflared-x86-64-$(VERSION).tgz
252- s4cmd --endpoint-url $(S3_ENDPOINT) --force --API-GrantRead=uri=http://acs.amazonaws.com/groups/global/AllUsers \
253- put cloudflared-x86-64-$(VERSION).tgz.shasum $(S3_URI)/cloudflared-x86-64-$(VERSION).tgz.shasum
254- dpkg --compare-versions "$(VERSION)" gt "$(shell cat cloudflared-x86-64.latest.s3)" && \
255- echo -n "$(VERSION)" > cloudflared-x86-64.latest && \
256- s4cmd --endpoint-url $(S3_ENDPOINT) --force --API-GrantRead=uri=http://acs.amazonaws.com/groups/global/AllUsers \
257- put cloudflared-x86-64.latest $(S3_URI)/cloudflared-x86-64.latest || \
258- echo "Latest version not updated"
259-
260- cloudflared-x86-64.latest.s3 :
261- s4cmd --endpoint-url $(S3_ENDPOINT ) --force \
262- get $(S3_URI ) /cloudflared-x86-64.latest cloudflared-x86-64.latest.s3
263-
264212.PHONY : homebrew-upload
265213homebrew-upload : cloudflared-darwin-amd64.tgz
266214 aws s3 --endpoint-url $(S3_ENDPOINT ) cp --acl public-read $$^ $(S3_URI ) /cloudflared-$$(VERSION ) -$1 .tgz
0 commit comments