From 9ca4dd442e530be8fe922f9ff97ede152b7a6d46 Mon Sep 17 00:00:00 2001 From: Sven SAULEAU Date: Sun, 23 Jul 2017 22:29:33 +0200 Subject: [PATCH 01/16] feat: deploy in CI --- .travis.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index b0b79c9..e6cbd7c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,12 +1,21 @@ sudo: false language: node_js node_js: - - "stable" +- stable env: global: - - BUILD_TIMEOUT=10000 + - BUILD_TIMEOUT=10000 install: npm install -after_success: if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then npm run deploy:ci; fi +after_success: if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then npm run deploy:ci; + fi branches: only: - master +deploy: + provider: elasticbeanstalk + access_key_id: AKIAJEB6I7DQIVB4XLAQ + secret_access_key: + secure: CUktHCze13QCvxL87HFtxZf/J+d+UZX/31pfPuX/rGac2sg8C12rXckT8zAXZJFclze2wFxlSDirBfz/ASPpchYiAJ/tg88jfYt27hznOIRyXX+p9916JoEVLIwG6OpiNneekwgL0g27FAGaqE8ktjbmfYykcrTcHJbj7DeBK6OsEnN1HhgJltkIXkN/+fDT9oyavSyfYO+lXQs+IdfLDN6uP/JiyUEODpDUNq5bAO4jJnqXEOONx1afGxXOC1y2O8vZNZMZ+/VgpuSjk2xBdVsSAIFwUbk3ASu+a0Dhop7krHV+85FO+TNzyeQ1N6+qkgnsp32C3VE99GglJZrG8FjTqp3BtW0bK7xb5gl1+2mFx2I0YXDvS7PW+6ekAmkL6kZCsqMG9PJchGAM+5b4Dr4rUyBJGW6hY6Bk3t1SwaM5FBwc2nIb1I/Mz8jfZbnLMt6DIMs+IawF+Wt+V4jAbOodTg7yimlmOTYMNgk9H4nubGCTgZ+wB2xpsw1Lw1QRNvcNGhcLCa6CuXfCUbrTkgovS/nGxK5CK7cT54P+o4qGWfYnLPevfPD4p9jvihLUP/3npnQUX4JkMqU2tJJu0wQhmvqEy/e6UDUQubIXZGnS7nONkJT5IRJS4zo1uasr/Bvlssm9wGBJNYkbcIJRTDWse/qfwHtTbNGx7WUVwss= + region: us-east-1 + app: packd + env: packd-prod From b7ebf6fbc1858f293462dbaeba5a498ba262681d Mon Sep 17 00:00:00 2001 From: Sven SAULEAU Date: Sun, 23 Jul 2017 22:31:21 +0200 Subject: [PATCH 02/16] chore: force-deploy --- force-deploy | 1 + 1 file changed, 1 insertion(+) create mode 100644 force-deploy diff --git a/force-deploy b/force-deploy new file mode 100644 index 0000000..7898192 --- /dev/null +++ b/force-deploy @@ -0,0 +1 @@ +a From eee0b80dfce98cbafa43bcd82909876dfb5f9389 Mon Sep 17 00:00:00 2001 From: Sven SAULEAU Date: Sun, 23 Jul 2017 22:33:20 +0200 Subject: [PATCH 03/16] chore: remove now scripts --- .travis.yml | 2 ++ package.json | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index e6cbd7c..ae4e479 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,3 +19,5 @@ deploy: region: us-east-1 app: packd env: packd-prod + on: + branch: master diff --git a/package.json b/package.json index 9e76896..6b83434 100644 --- a/package.json +++ b/package.json @@ -4,8 +4,8 @@ "description": "Simple alternative to browserify-cdn", "scripts": { "start": "node server", - "deploy": "now && now alias", - "deploy:ci": "now --token $NOW_TOKEN && now alias --token $NOW_TOKEN", + "deploy": "exit 0 && now && now alias", + "deploy:ci": "exit 0 && now --token $NOW_TOKEN && now alias --token $NOW_TOKEN", "test": "node test/test.js" }, "repository": { From 60189e5d3b94088a197258ef4013ecf1226561ea Mon Sep 17 00:00:00 2001 From: Sven SAULEAU Date: Sun, 23 Jul 2017 22:37:37 +0200 Subject: [PATCH 04/16] feat: add bucket_name --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index ae4e479..d73635d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,5 +19,6 @@ deploy: region: us-east-1 app: packd env: packd-prod + bucket_name: elasticbeanstalk-us-east-1-161663720085 on: branch: master From d855bf1de8541ec4a04e99ff719d25aaa6d19f14 Mon Sep 17 00:00:00 2001 From: Sven SAULEAU Date: Sun, 23 Jul 2017 22:58:37 +0200 Subject: [PATCH 05/16] chore: update dpl keys --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index d73635d..c77fdec 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,9 +13,9 @@ branches: - master deploy: provider: elasticbeanstalk - access_key_id: AKIAJEB6I7DQIVB4XLAQ + access_key_id: AKIAILFVEK456IRXIXIA secret_access_key: - secure: CUktHCze13QCvxL87HFtxZf/J+d+UZX/31pfPuX/rGac2sg8C12rXckT8zAXZJFclze2wFxlSDirBfz/ASPpchYiAJ/tg88jfYt27hznOIRyXX+p9916JoEVLIwG6OpiNneekwgL0g27FAGaqE8ktjbmfYykcrTcHJbj7DeBK6OsEnN1HhgJltkIXkN/+fDT9oyavSyfYO+lXQs+IdfLDN6uP/JiyUEODpDUNq5bAO4jJnqXEOONx1afGxXOC1y2O8vZNZMZ+/VgpuSjk2xBdVsSAIFwUbk3ASu+a0Dhop7krHV+85FO+TNzyeQ1N6+qkgnsp32C3VE99GglJZrG8FjTqp3BtW0bK7xb5gl1+2mFx2I0YXDvS7PW+6ekAmkL6kZCsqMG9PJchGAM+5b4Dr4rUyBJGW6hY6Bk3t1SwaM5FBwc2nIb1I/Mz8jfZbnLMt6DIMs+IawF+Wt+V4jAbOodTg7yimlmOTYMNgk9H4nubGCTgZ+wB2xpsw1Lw1QRNvcNGhcLCa6CuXfCUbrTkgovS/nGxK5CK7cT54P+o4qGWfYnLPevfPD4p9jvihLUP/3npnQUX4JkMqU2tJJu0wQhmvqEy/e6UDUQubIXZGnS7nONkJT5IRJS4zo1uasr/Bvlssm9wGBJNYkbcIJRTDWse/qfwHtTbNGx7WUVwss= + secure: fJxQqPkKF0vxT57RR+NKR936fIgmyVH72bT6RM7Vj9Q5wU8l45QEgog+h7NWDm+u9a65PtpbtqskLWJt2v3E9hi8skrkKY+2SJGEK2Obqzba4b77QV1+2Znrb9Vp1pcWETHkPYGpcsTlAiraQDnpTJSvnzsOp+/x7kXMsi4BT8pFOPqyVtcKjuxXah6bCjiROQZo7sSuaii2ppwiKu9C0IRANCyaW3kpYQBIvUv/ntn1SQHTOPDpcyGP2DTNR5LzISTmkcqOPzVL6DhyIvxR5jbA2yoVXpbP0iV4HBfXMdClJ5g/RWETxiTSMKSrp5M3Tq2AX6r06mvNRByZjytrsPEMJs8u2g5Eph27eRj9OwBtzezuDqz1ewfTR1ol40TwVrtNEqwVFhxeli2RB7ly3CaDuf60WwyJAd0uHyTocBQVQMKmgHSLxqmeAWNgkRCKBD6nEcB3/Zf8xVmJGTd2p7+0qqvH0RWWqGy/u7KubWGI4zKbowzlbRj8VI7EUiBnZO7H6oe2fItYDhfEHodQLqFmUNMeACLf6EtKMDZaPPJfNC7ze/KVYmoYlaqZpwTLw+UCIaClzWUJXFJ+hk1NPemNElUARUQ3hFP58bCA+jqelBPehujt8/Wud0vdscdHicPMfqDdY2KgOGyRE3fy1ufScEJnCegfECbRtRkFXis= region: us-east-1 app: packd env: packd-prod From 274897876c34622aebad34893c6e1f1a92d80670 Mon Sep 17 00:00:00 2001 From: Sven SAULEAU Date: Mon, 14 Aug 2017 17:37:22 +0200 Subject: [PATCH 06/16] test --- force-deploy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/force-deploy b/force-deploy index 7898192..f0bb348 100644 --- a/force-deploy +++ b/force-deploy @@ -1 +1 @@ -a +429295820 From 4d66b86f197417c4cc1c26acf5b561004582403b Mon Sep 17 00:00:00 2001 From: Sven SAULEAU Date: Mon, 14 Aug 2017 17:38:57 +0200 Subject: [PATCH 07/16] fix: remove branch restrictions --- .travis.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index c77fdec..83a47f3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,9 +8,9 @@ env: install: npm install after_success: if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then npm run deploy:ci; fi -branches: - only: - - master +# branches: +# only: +# - master deploy: provider: elasticbeanstalk access_key_id: AKIAILFVEK456IRXIXIA @@ -20,5 +20,5 @@ deploy: app: packd env: packd-prod bucket_name: elasticbeanstalk-us-east-1-161663720085 - on: - branch: master + # on: + # branch: master From 985adf3c9674c09d54f6344eee8b97ebde1d6af1 Mon Sep 17 00:00:00 2001 From: Sven SAULEAU Date: Mon, 14 Aug 2017 17:42:25 +0200 Subject: [PATCH 08/16] feat: permit current branch to deploy --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 83a47f3..a20268b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,5 +20,5 @@ deploy: app: packd env: packd-prod bucket_name: elasticbeanstalk-us-east-1-161663720085 - # on: - # branch: master + on: + branch: dpl-aws-eb From 8e87990efa7dcf177c8a951d60bce34afe1eb059 Mon Sep 17 00:00:00 2001 From: Sven SAULEAU Date: Mon, 14 Aug 2017 17:47:35 +0200 Subject: [PATCH 09/16] fix: try with sudo --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index a20268b..8cdc8d7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,4 @@ -sudo: false +sudo: required language: node_js node_js: - stable From 2a7adb47a9fdeedf25913638486808937d21dd95 Mon Sep 17 00:00:00 2001 From: Sven SAULEAU Date: Mon, 14 Aug 2017 17:51:25 +0200 Subject: [PATCH 10/16] feat: ignore cleanup --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 8cdc8d7..b39e36e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,4 @@ -sudo: required +sudo: false language: node_js node_js: - stable @@ -13,6 +13,7 @@ after_success: if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then npm run deploy:ci # - master deploy: provider: elasticbeanstalk + skip_cleanup: true access_key_id: AKIAILFVEK456IRXIXIA secret_access_key: secure: fJxQqPkKF0vxT57RR+NKR936fIgmyVH72bT6RM7Vj9Q5wU8l45QEgog+h7NWDm+u9a65PtpbtqskLWJt2v3E9hi8skrkKY+2SJGEK2Obqzba4b77QV1+2Znrb9Vp1pcWETHkPYGpcsTlAiraQDnpTJSvnzsOp+/x7kXMsi4BT8pFOPqyVtcKjuxXah6bCjiROQZo7sSuaii2ppwiKu9C0IRANCyaW3kpYQBIvUv/ntn1SQHTOPDpcyGP2DTNR5LzISTmkcqOPzVL6DhyIvxR5jbA2yoVXpbP0iV4HBfXMdClJ5g/RWETxiTSMKSrp5M3Tq2AX6r06mvNRByZjytrsPEMJs8u2g5Eph27eRj9OwBtzezuDqz1ewfTR1ol40TwVrtNEqwVFhxeli2RB7ly3CaDuf60WwyJAd0uHyTocBQVQMKmgHSLxqmeAWNgkRCKBD6nEcB3/Zf8xVmJGTd2p7+0qqvH0RWWqGy/u7KubWGI4zKbowzlbRj8VI7EUiBnZO7H6oe2fItYDhfEHodQLqFmUNMeACLf6EtKMDZaPPJfNC7ze/KVYmoYlaqZpwTLw+UCIaClzWUJXFJ+hk1NPemNElUARUQ3hFP58bCA+jqelBPehujt8/Wud0vdscdHicPMfqDdY2KgOGyRE3fy1ufScEJnCegfECbRtRkFXis= From 905da64773bd6dd4d93c41b83724d58cf2b775e1 Mon Sep 17 00:00:00 2001 From: Sven SAULEAU Date: Mon, 14 Aug 2017 18:05:28 +0200 Subject: [PATCH 11/16] fix: remove cleanup --- .travis.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index b39e36e..a20268b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,7 +13,6 @@ after_success: if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then npm run deploy:ci # - master deploy: provider: elasticbeanstalk - skip_cleanup: true access_key_id: AKIAILFVEK456IRXIXIA secret_access_key: secure: fJxQqPkKF0vxT57RR+NKR936fIgmyVH72bT6RM7Vj9Q5wU8l45QEgog+h7NWDm+u9a65PtpbtqskLWJt2v3E9hi8skrkKY+2SJGEK2Obqzba4b77QV1+2Znrb9Vp1pcWETHkPYGpcsTlAiraQDnpTJSvnzsOp+/x7kXMsi4BT8pFOPqyVtcKjuxXah6bCjiROQZo7sSuaii2ppwiKu9C0IRANCyaW3kpYQBIvUv/ntn1SQHTOPDpcyGP2DTNR5LzISTmkcqOPzVL6DhyIvxR5jbA2yoVXpbP0iV4HBfXMdClJ5g/RWETxiTSMKSrp5M3Tq2AX6r06mvNRByZjytrsPEMJs8u2g5Eph27eRj9OwBtzezuDqz1ewfTR1ol40TwVrtNEqwVFhxeli2RB7ly3CaDuf60WwyJAd0uHyTocBQVQMKmgHSLxqmeAWNgkRCKBD6nEcB3/Zf8xVmJGTd2p7+0qqvH0RWWqGy/u7KubWGI4zKbowzlbRj8VI7EUiBnZO7H6oe2fItYDhfEHodQLqFmUNMeACLf6EtKMDZaPPJfNC7ze/KVYmoYlaqZpwTLw+UCIaClzWUJXFJ+hk1NPemNElUARUQ3hFP58bCA+jqelBPehujt8/Wud0vdscdHicPMfqDdY2KgOGyRE3fy1ufScEJnCegfECbRtRkFXis= From f12dbc678f0a4831662d964a7690fff43df0076c Mon Sep 17 00:00:00 2001 From: Sven SAULEAU Date: Mon, 14 Aug 2017 18:08:02 +0200 Subject: [PATCH 12/16] fix: changes AWS keys --- .travis.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index a20268b..bd1e181 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,14 +8,11 @@ env: install: npm install after_success: if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then npm run deploy:ci; fi -# branches: -# only: -# - master deploy: provider: elasticbeanstalk - access_key_id: AKIAILFVE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DBwfNGUkLKyrZClDvG/mvz04DzxF5VZjyL273nXxHYjDPlcf6e1BLdYuMYIMuiXJnjRu55G9fCVJdA4BumpWsVaVA6tP9+2TcKWnCa7fvKJDOSxzqfikww+cTQPWzfvzJJO6hzc1REWWZ6VqLk5s5GktfbeJ2CHR9lUlWmAj0GDEzSJdONTCcvWR4zNFUOmK77dTwFCVld8dn/6m1fasNLELAT5tCJvHuQ98GWdqlsNPslcbsj3FeA46+uSyR5458TAh5rbyIKvAqcaI4snCCqejStpAUVqOhiBKAI0V315RI55Y1iDDid7V2PDEOm1bZe/6876zQ0JsQ= region: us-east-1 app: packd env: packd-prod From 9b0aaa9a728903f7e35e1892d59d9fd22a07159e Mon Sep 17 00:00:00 2001 From: Sven SAULEAU Date: Mon, 14 Aug 2017 18:14:59 +0200 Subject: [PATCH 13/16] test --- force-deploy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/force-deploy b/force-deploy index f0bb348..4feda3b 100644 --- a/force-deploy +++ b/force-deploy @@ -1 +1 @@ -429295820 +832084645 From 67e827d48337da62f41196dea69e4e45bb0dd70c Mon Sep 17 00:00:00 2001 From: Sven SAULEAU Date: Mon, 14 Aug 2017 18:22:36 +0200 Subject: [PATCH 14/16] feat: bucket path --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index bd1e181..5c0f86d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,5 +17,6 @@ deploy: app: packd env: packd-prod bucket_name: elasticbeanstalk-us-east-1-161663720085 + bucket_path: packd on: branch: dpl-aws-eb From 7512e7e5053e90974f9f36f0f63410317b207567 Mon Sep 17 00:00:00 2001 From: Sven SAULEAU Date: Wed, 16 Aug 2017 16:52:14 +0200 Subject: [PATCH 15/16] feat: use on tags --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 5c0f86d..959b50b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,4 +19,5 @@ deploy: bucket_name: elasticbeanstalk-us-east-1-161663720085 bucket_path: packd on: - branch: dpl-aws-eb + tags: true + From 5a6d0dd44740f852646fa1b23fb3601a08e975d1 Mon Sep 17 00:00:00 2001 From: Sven SAULEAU Date: Wed, 16 Aug 2017 16:54:53 +0200 Subject: [PATCH 16/16] fix: [skip ci] cleanup --- .travis.yml | 8 ++++---- force-deploy | 1 - package.json | 4 ++-- 3 files changed, 6 insertions(+), 7 deletions(-) delete mode 100644 force-deploy diff --git a/.travis.yml b/.travis.yml index 959b50b..51b0784 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,13 +1,13 @@ sudo: false language: node_js node_js: -- stable + - stable env: global: - - BUILD_TIMEOUT=10000 + - BUILD_TIMEOUT=10000 + - NODE_ENV=production install: npm install -after_success: if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then npm run deploy:ci; - fi + deploy: provider: elasticbeanstalk access_key_id: AKIAJX4HOIEXUAHVC77A diff --git a/force-deploy b/force-deploy deleted file mode 100644 index 4feda3b..0000000 --- a/force-deploy +++ /dev/null @@ -1 +0,0 @@ -832084645 diff --git a/package.json b/package.json index 0ece443..396be52 100644 --- a/package.json +++ b/package.json @@ -4,8 +4,8 @@ "description": "Simple alternative to browserify-cdn", "scripts": { "start": "node server", - "deploy": "exit 0 && now && now alias", - "test": "exit 0 && node test/test.js", + "deploy": "now && now alias", + "test": "node test/test.js", "postpublish": "npm run deploy" }, "repository": {