@@ -8,6 +8,9 @@ PREFIX ?= /usr/local
8
8
FLAKY_TESTS ?= run
9
9
TEST_CI_ARGS ?=
10
10
STAGINGSERVER ?= node-www
11
+ CLOUDFLARE_ENDPOINT ?= https://07be8d2fbc940503ca1be344714cb0d1.r2.cloudflarestorage.com
12
+ CLOUDFLARE_BUCKET ?= dist-staging
13
+ CLOUDFLARE_PROFILE ?= worker
11
14
LOGLEVEL ?= silent
12
15
OSTYPE := $(shell uname -s | tr '[:upper:]' '[:lower:]')
13
16
ifeq ($(findstring os/390,$OSTYPE) ,os/390)
@@ -1144,6 +1147,7 @@ pkg-upload: pkg
1144
1147
ssh $(STAGINGSERVER ) " mkdir -p nodejs/$( DISTTYPEDIR) /$( FULLVERSION) "
1145
1148
chmod 664 $(TARNAME ) .pkg
1146
1149
scp -p $(TARNAME ) .pkg $(STAGINGSERVER ) :nodejs/$(DISTTYPEDIR ) /$(FULLVERSION ) /$(TARNAME ) .pkg
1150
+ ssh $(STAGINGSERVER ) " aws s3 cp nodejs/$( DISTTYPEDIR) /$( FULLVERSION) /$( TARNAME) .pkg s3://$( CLOUDFLARE_BUCKET) /nodejs/$( DISTTYPEDIR) /$( FULLVERSION) /$( TARNAME) .pkg --endpoint=$( CLOUDFLARE_ENDPOINT) " --profile=$(CLOUDFLARE_PROFILE ) "
1147
1151
ssh $(STAGINGSERVER ) " touch nodejs/$( DISTTYPEDIR) /$( FULLVERSION) /$( TARNAME) .pkg.done"
1148
1152
1149
1153
$(TARBALL ) : release-only doc-only
@@ -1193,10 +1197,12 @@ tar-upload: tar
1193
1197
ssh $(STAGINGSERVER ) " mkdir -p nodejs/$( DISTTYPEDIR) /$( FULLVERSION) "
1194
1198
chmod 664 $(TARNAME ) .tar.gz
1195
1199
scp -p $(TARNAME ) .tar.gz $(STAGINGSERVER ) :nodejs/$(DISTTYPEDIR ) /$(FULLVERSION ) /$(TARNAME ) .tar.gz
1200
+ ssh $(STAGINGSERVER ) " aws s3 cp nodejs/$( DISTTYPEDIR) /$( FULLVERSION) /$( TARNAME) .tar.gz s3://$( CLOUDFLARE_BUCKET) /nodejs/$( DISTTYPEDIR) /$( FULLVERSION) /$( TARNAME) .tar.gz --endpoint=$( CLOUDFLARE_ENDPOINT) " --profile=$(CLOUDFLARE_PROFILE )
1196
1201
ssh $(STAGINGSERVER ) " touch nodejs/$( DISTTYPEDIR) /$( FULLVERSION) /$( TARNAME) .tar.gz.done"
1197
1202
ifeq ($(XZ ) , 1)
1198
1203
chmod 664 $(TARNAME).tar.xz
1199
1204
scp -p $(TARNAME).tar.xz $(STAGINGSERVER):nodejs/$(DISTTYPEDIR)/$(FULLVERSION)/$(TARNAME).tar.xz
1205
+ ssh $(STAGINGSERVER) "aws s3 cp nodejs/$(DISTTYPEDIR)/$(FULLVERSION)/$(TARNAME).tar.xz s3://$(CLOUDFLARE_BUCKET)/nodejs/$(DISTTYPEDIR)/$(FULLVERSION)/$(TARNAME).tar.xz --endpoint=$(CLOUDFLARE_ENDPOINT)" --profile=$(CLOUDFLARE_PROFILE)
1200
1206
ssh $(STAGINGSERVER) "touch nodejs/$(DISTTYPEDIR)/$(FULLVERSION)/$(TARNAME).tar.xz.done"
1201
1207
endif
1202
1208
@@ -1206,6 +1212,7 @@ doc-upload: doc
1206
1212
ssh $(STAGINGSERVER ) " mkdir -p nodejs/$( DISTTYPEDIR) /$( FULLVERSION) /docs/"
1207
1213
chmod -R ug=rw-x+X,o=r+X out/doc/
1208
1214
scp -pr out/doc/* $(STAGINGSERVER ) :nodejs/$(DISTTYPEDIR ) /$(FULLVERSION ) /docs/
1215
+ ssh $(STAGINGSERVER ) " aws s3 cp --recursive nodejs/$( DISTTYPEDIR) /$( FULLVERSION) /docs s3://$( CLOUDFLARE_BUCKET) /nodejs/$( DISTTYPEDIR) /$( FULLVERSION) /docs/ --endpoint=$( CLOUDFLARE_ENDPOINT) " --profile=$(CLOUDFLARE_PROFILE )
1209
1216
ssh $(STAGINGSERVER ) " touch nodejs/$( DISTTYPEDIR) /$( FULLVERSION) /docs.done"
1210
1217
1211
1218
.PHONY : $(TARBALL ) -headers
@@ -1234,10 +1241,12 @@ tar-headers-upload: tar-headers
1234
1241
ssh $(STAGINGSERVER ) " mkdir -p nodejs/$( DISTTYPEDIR) /$( FULLVERSION) "
1235
1242
chmod 664 $(TARNAME ) -headers.tar.gz
1236
1243
scp -p $(TARNAME ) -headers.tar.gz $(STAGINGSERVER ) :nodejs/$(DISTTYPEDIR ) /$(FULLVERSION ) /$(TARNAME ) -headers.tar.gz
1244
+ ssh $(STAGINGSERVER ) " aws s3 cp nodejs/$( DISTTYPEDIR) /$( FULLVERSION) /$( TARNAME) -headers.tar.gz s3://$( CLOUDFLARE_BUCKET) /nodejs/$( DISTTYPEDIR) /$( FULLVERSION) /$( TARNAME) -headers.tar.gz --endpoint=$( CLOUDFLARE_ENDPOINT) " --profile=$(CLOUDFLARE_PROFILE )
1237
1245
ssh $(STAGINGSERVER ) " touch nodejs/$( DISTTYPEDIR) /$( FULLVERSION) /$( TARNAME) -headers.tar.gz.done"
1238
1246
ifeq ($(XZ ) , 1)
1239
1247
chmod 664 $(TARNAME)-headers.tar.xz
1240
1248
scp -p $(TARNAME)-headers.tar.xz $(STAGINGSERVER):nodejs/$(DISTTYPEDIR)/$(FULLVERSION)/$(TARNAME)-headers.tar.xz
1249
+ ssh $(STAGINGSERVER) "aws s3 cp nodejs/$(DISTTYPEDIR)/$(FULLVERSION)/$(TARNAME)-headers.tar.xz s3://$(CLOUDFLARE_BUCKET)/nodejs/$(DISTTYPEDIR)/$(FULLVERSION)/$(TARNAME)-headers.tar.xz --endpoint=$(CLOUDFLARE_ENDPOINT)" --profile=$(CLOUDFLARE_PROFILE)
1241
1250
ssh $(STAGINGSERVER) "touch nodejs/$(DISTTYPEDIR)/$(FULLVERSION)/$(TARNAME)-headers.tar.xz.done"
1242
1251
endif
1243
1252
@@ -1279,10 +1288,12 @@ binary-upload: binary
1279
1288
ssh $(STAGINGSERVER ) " mkdir -p nodejs/$( DISTTYPEDIR) /$( FULLVERSION) "
1280
1289
chmod 664 $(TARNAME ) -$(OSTYPE ) -$(ARCH ) .tar.gz
1281
1290
scp -p $(TARNAME ) -$(OSTYPE ) -$(ARCH ) .tar.gz $(STAGINGSERVER ) :nodejs/$(DISTTYPEDIR ) /$(FULLVERSION ) /$(TARNAME ) -$(OSTYPE ) -$(ARCH ) .tar.gz
1291
+ ssh $(STAGINGSERVER ) " aws s3 cp nodejs/$( DISTTYPEDIR) /$( FULLVERSION) /$( TARNAME) -$( OSTYPE) -$( ARCH) .tar.gz s3://$( CLOUDFLARE_BUCKET) /nodejs/$( DISTTYPEDIR) /$( FULLVERSION) /$( TARNAME) -$( OSTYPE) -$( ARCH) .tar.gz --endpoint=$( CLOUDFLARE_ENDPOINT) " --profile=$(CLOUDFLARE_PROFILE )
1282
1292
ssh $(STAGINGSERVER ) " touch nodejs/$( DISTTYPEDIR) /$( FULLVERSION) /$( TARNAME) -$( OSTYPE) -$( ARCH) .tar.gz.done"
1283
1293
ifeq ($(XZ ) , 1)
1284
1294
chmod 664 $(TARNAME)-$(OSTYPE)-$(ARCH).tar.xz
1285
1295
scp -p $(TARNAME)-$(OSTYPE)-$(ARCH).tar.xz $(STAGINGSERVER):nodejs/$(DISTTYPEDIR)/$(FULLVERSION)/$(TARNAME)-$(OSTYPE)-$(ARCH).tar.xz
1296
+ ssh $(STAGINGSERVER) "aws s3 cp nodejs/$(DISTTYPEDIR)/$(FULLVERSION)/$(TARNAME)-$(OSTYPE)-$(ARCH).tar.xz s3://$(CLOUDFLARE_BUCKET)/nodejs/$(DISTTYPEDIR)/$(FULLVERSION)/$(TARNAME)-$(OSTYPE)-$(ARCH).tar.xz --endpoint=$(CLOUDFLARE_ENDPOINT)" --profile=$(CLOUDFLARE_PROFILE)
1286
1297
ssh $(STAGINGSERVER) "touch nodejs/$(DISTTYPEDIR)/$(FULLVERSION)/$(TARNAME)-$(OSTYPE)-$(ARCH).tar.xz.done"
1287
1298
endif
1288
1299
0 commit comments