-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auto-Deployment (without Static Delivery Changes) #152
Conversation
# Conflicts: # src/deploy.js
# Conflicts: # test/testDeployCmd.js
# Conflicts: # test/testDeployCmd.js
# Conflicts: # test/testUpCmd.js
Codecov Report
@@ Coverage Diff @@
## master #152 +/- ##
==========================================
+ Coverage 82.24% 82.83% +0.59%
==========================================
Files 21 22 +1
Lines 1098 1177 +79
Branches 125 142 +17
==========================================
+ Hits 903 975 +72
- Misses 195 202 +7
Continue to review full report at Codecov.
|
This pull request introduces 1 alert when merging 5870dec into e707ff1 - view on LGTM.com new alerts:
Comment posted by LGTM.com |
thanks @trieloff for squashing the 24 commits :-) really appreciate! |
- fixes #135 * Refactor: create GitUtils utility class * added --circleci-auth option for hlx deploy --auto #135 * follow project on CircleCI #135 * Set build environment variables #135 * hlx deploy now requires fastly, wsk, and circleci settings * check for existence of config.yml before starting auto-deployment * Actually pass fastly parameters into command executor * Added default CircleCI configs * fix test * bring up test coverage * Don't log fastly auth * added integration test (with fixtures) for auto-deploy * lint * restore state after testing * lint * fix tests * Resolve conflicts * fix lint * fix failing test * fix another failing test * Fix for deploy command test failure * increase timeouts * fix linting errors * revert partial refactor
This is a fix for #135 and obsoletes #130. It does no longer have a dependency on #112, as this might take a bit longer to be discussed.
The default for
hlx deploy
ishlx deploy --auto
, which will set up a CI/CD pipeline for the given repository. To do this, we depend on:(this branch is based on both branches to avoid later merge conflicts)
The rough process will look like this:
hlx deploy
gets a--circleci-auth
optionscurl -X "POST" "https://circleci.com/api/v1.1/project/github/trieloff/helix-helpx/follow"
curl -X "POST" "https://circleci.com/api/v1.1/project/github/trieloff/helix-helpx/envvar" -H 'Accept: application/json' -H 'Content-Type: application/json' -d $'{"name": "HLX_WSK_AUTH","value": "FOO"}'
(repeat for all arguments that are relevant tohlx deploy
andhlx strain
).circleci/config.yaml