Skip to content

Commit

Permalink
Add script for creating build jobs on hyper.sh + remove codebuild code
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleAMathews committed Dec 22, 2017
1 parent f674ad2 commit 19c66f0
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 91 deletions.
18 changes: 0 additions & 18 deletions infrastructure/buildspec.yml

This file was deleted.

24 changes: 0 additions & 24 deletions infrastructure/codebuild-project-template.json

This file was deleted.

47 changes: 0 additions & 47 deletions infrastructure/create-codebuild-project.js

This file was deleted.

16 changes: 16 additions & 0 deletions infrastructure/create-job.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
const request = require(`request`)

const config = {
Env: [
`PATH_TO_SITE=${process.env.PATH_TO_SITE}`,
`GRAPHCOOL_TOKEN=${process.env.GRAPHCOOL_TOKEN}`,
`CODEBUILD_SOURCE_VERSION=${process.env.COMMIT}`,
`accessKeyId=${process.env.accessKeyId}`,
`secretAccessKey=${process.env.secretAccessKey}`,
],
Image: "gatsbyjs/gatsby-dev-build",
}

request.post(`https://us-west-1.hyper.sh/v1.23`, {
json: true,
})
3 changes: 3 additions & 0 deletions infrastructure/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
"async": "^2.6.0",
"aws-sdk": "^2.173.0",
"graphql-request": "^1.4.0",
"hyper-api": "^1.6.0",
"hyper-aws4": "^1.1.3",
"node-fetch": "^1.7.3",
"s3": "^4.4.0",
"shelljs": "^0.7.8"
}
Expand Down
22 changes: 20 additions & 2 deletions infrastructure/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ base64-js@^1.0.2:
version "1.2.1"
resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.2.1.tgz#a91947da1f4a516ea38e5b4ec0ec3773675e0886"

bluebird@^3.4.6:
version "3.5.1"
resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.5.1.tgz#d9551f9de98f1fcda1e683d17ee91a0602ee2eb9"

brace-expansion@^1.1.7:
version "1.1.8"
resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.8.tgz#c07b211c7c952ec1f8efd51a77ef0d1d3990a292"
Expand Down Expand Up @@ -115,6 +119,20 @@ graphql-request@^1.4.0:
dependencies:
cross-fetch "0.0.8"

hyper-api@^1.6.0:
version "1.6.0"
resolved "https://registry.yarnpkg.com/hyper-api/-/hyper-api-1.6.0.tgz#2f0d2ed3c3c7009e127a28a4c991043af2efefc7"
dependencies:
bluebird "^3.4.6"
hyper-aws4 "^1.1.1"
node-fetch "^1.6.0"

hyper-aws4@^1.1.1, hyper-aws4@^1.1.3:
version "1.1.3"
resolved "https://registry.yarnpkg.com/hyper-aws4/-/hyper-aws4-1.1.3.tgz#c1882e746af5445d065a941df22ed165e332bdd7"
dependencies:
lodash "^4.13.1"

iconv-lite@~0.4.13:
version "0.4.19"
resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.19.tgz#f7468f60135f5e5dad3399c0a81be9a1603a082b"
Expand Down Expand Up @@ -150,7 +168,7 @@ jmespath@0.15.0:
version "0.15.0"
resolved "https://registry.yarnpkg.com/jmespath/-/jmespath-0.15.0.tgz#a3f222a9aae9f966f5d27c796510e28091764217"

lodash@^4.0.0, lodash@^4.14.0:
lodash@^4.0.0, lodash@^4.13.1, lodash@^4.14.0:
version "4.17.4"
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae"

Expand Down Expand Up @@ -178,7 +196,7 @@ natives@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/natives/-/natives-1.1.0.tgz#e9ff841418a6b2ec7a495e939984f78f163e6e31"

node-fetch@1.7.3:
node-fetch@1.7.3, node-fetch@^1.6.0, node-fetch@^1.7.3:
version "1.7.3"
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-1.7.3.tgz#980f6f72d85211a5347c6b2bc18c5b84c3eb47ef"
dependencies:
Expand Down

0 comments on commit 19c66f0

Please sign in to comment.