Commit Graph

501 Commits

Author SHA1 Message Date
Luke Kysow
464cd51eae Implement plan step. 2018-06-05 17:08:39 +01:00
Luke Kysow
692e4144ed Implement init step. 2018-06-05 17:07:49 +01:00
Luke Kysow
6dc0e3c3f3 Implement apply step. 2018-06-05 17:07:31 +01:00
Luke Kysow
8ee16a0281 By default atlantis plan will run in root dir.
This change makes things cleaner because there will only ever be one
plan generated in the comment flow. It's okay to make this change
because typing the plan command a couple times isn't too bad AND we're
going to be implementing autoplanning which should handle most of the
times you needed to type plan from before.
2018-06-05 17:06:57 +01:00
Luke Kysow
9e5f57a549 Merge pull request #146 from runatlantis/codecov
Disable code coverage GitHub statuses.
2018-06-04 12:15:29 +02:00
Luke Kysow
049c0347e7 Disable code coverage GitHub statuses.
Many pull requests that I've wanted to merge have failed CodeCov
statuses. This indicates that they're not useful for this project at
this time so I'm disabling them. The comment from CodeCov is the most
useful part.
2018-06-04 11:47:50 +02:00
Luke Kysow
831e5938ac Merge pull request #143 from runatlantis/release-0.3.10
Release 0.3.10
v0.3.10
2018-05-30 21:37:46 +02:00
Luke Kysow
0eaf8adba8 Release 0.3.10 2018-05-30 21:36:52 +02:00
Luke Kysow
10ed280b5a Merge pull request #142 from runatlantis/spelling
Fix some spelling errors.
2018-05-30 19:01:27 +02:00
Luke Kysow
93c4be3a53 Fix some spelling errors. 2018-05-30 18:59:26 +02:00
Luke Kysow
3b5f249e7f Merge pull request #141 from runatlantis/http-tests
Use new mux.SetURLVars function for testing.
2018-05-30 18:55:18 +02:00
Luke Kysow
143fb82bd2 Use new mux.SetURLVars function for testing. 2018-05-30 18:48:12 +02:00
Luke Kysow
497902547d Update gorilla/mux 2018-05-30 18:47:21 +02:00
Luke Kysow
ba1d3fdbd3 Merge pull request #140 from runatlantis/mohit
Comment back on pull request when lock is discarded from Atlantis UI
2018-05-30 18:36:23 +02:00
Luke Kysow
a57d4c6618 Comment on pull request when lock discarded.
When the lock is discarded from the Atlantis UI, comment back on pull
request so users know the lock was discarded.

- Adds the BaseRepo field to the PullRequest model.
- This change is backwards compatible with previous installations where
the DB will have a Project model with a PullRequest without the BaseRepo
field.
2018-05-30 16:38:40 +02:00
mo-hit
9df3609e6e WIP Implement commenting on pull when lock deleted. 2018-05-30 16:28:58 +02:00
Luke Kysow
822ac114aa Merge pull request #137 from nickwu241/update-developing-docs
Update CONTRIBUTING.md atlantis command example, pluralize Webhook boxes
2018-05-30 15:10:45 +02:00
Luke Kysow
a708a59a1d Merge pull request #139 from runatlantis/rename-bootstrap
Rename bootstrap to testdrive.
2018-05-30 15:09:41 +02:00
nickwu241
b7e0aa1edf Update README.md to set Webhook secret 2018-05-30 08:22:48 -04:00
nickwu241
c26abe8906 Update CONTRIBUTING.md run example with --gh-webhook-secret 2018-05-30 08:22:04 -04:00
Luke Kysow
b4993b60ea Rename bootstrap to testdrive.
Bootstrap is meant for a system that sets itself up. This command is
more like a testing mode so I want to rename it to avoid confusion.

Fixes #129 and came out of #117.
2018-05-30 13:35:05 +02:00
Luke Kysow
1da0c39d3e Merge pull request #138 from runatlantis/wait-for-text
Wait for ngrok/atlantis output during bootstrap
2018-05-30 13:29:51 +02:00
Luke Kysow
f6fb11ecfb Wait for ngrok/atlantis output during bootstrap
Previously, we started ngrok/atlantis server in the background and then
did a sleep to ensure the processes were running or just assumed they
were up. Now, we wait for a specific output to ensure those processes
are running before continuing on with the rest of the script.

Fixes #92.
2018-05-30 13:22:38 +02:00
nickwu241
b4aebfb8e4 Add --repo-whitelist flag to CONTRIBUTING.md setup 2018-05-29 20:33:36 -04:00
nickwu241
1669c1b405 Delete trailing whitespace in README.md 2018-05-29 20:30:30 -04:00
nickwu241
2d89712c2e Change 'Add GitHub Webhook' check boxes section with plural nouns 2018-05-29 20:30:10 -04:00
Luke Kysow
2c06898d2a Merge pull request #135 from antonbabenko/patch-1
Added a note about terraform-aws-atlantis project
2018-05-28 10:40:34 +02:00
Anton Babenko
7c3117d731 Update README.md 2018-05-27 21:48:05 +02:00
Anton Babenko
b1e3689ad9 Added a note about terraform-aws-atlantis project 2018-05-26 23:23:36 +02:00
Luke Kysow
373f5fa0e5 Merge pull request #130 from johananl/bugfix/mv_terraform_error
Improve error handling
2018-05-26 18:43:49 +02:00
Johanan Liebermann
27f9b3a112 Handle fast errors in background tasks 2018-05-26 16:18:19 +02:00
Johanan Liebermann
7bb8a5b1e3 Terminate child processes properly
- Wait for cancel functions to complete before main function returns.
- Make executeCmd and executeBackgroundCmd variadic.
2018-05-26 15:06:58 +02:00
Luke Kysow
6ef52534a8 Merge pull request #134 from runatlantis/k8s-fix
Set ATLANTIS_PORT.
2018-05-26 12:55:42 +02:00
Luke Kysow
a2d1d3e11d Set ATLANTIS_PORT.
Kubernetes sets ATLANTIS_PORT to a tcp://... address which Atlantis then
tries to parse so we need to set it ourselves.

Also add "v" to the version to make it obvious that the Docker images
all start with v.
2018-05-26 12:54:03 +02:00
Luke Kysow
472b613c25 Merge pull request #133 from runatlantis/k8s-rebased
Kubernetes Manifests
2018-05-26 12:38:26 +02:00
Luke Kysow
ba8267dda0 Move Kube manifests into README.
Since the manifests need to be edited before they're applied to the
cluster I thought it best to list them in the README rather than as
files so it's more obvious that you can't just kubectl apply them.

I also removed the dns-ssl manifest because it was using
tazjin/kubernetes-letsencrypt which is no longer maintained and because
there are so many ways to do SSL and routing within Kubernetes that I
don't have a specific recommendation.
2018-05-26 12:36:23 +02:00
Paul Salaberria
0a26c963ce Add Kubernetes examples 2018-05-26 12:36:23 +02:00
Johanan Liebermann
daf0270480 Include command output in error 2018-05-25 18:13:50 +02:00
Johanan Liebermann
a2de603379 Begin doc comments with function's name 2018-05-25 00:01:31 +02:00
Johanan Liebermann
e80120ebf4 Mark exec.Command with nosec 2018-05-23 22:55:11 +02:00
Johanan Liebermann
b8998fc35c Fix error re-declaration 2018-05-23 22:51:44 +02:00
Johanan Liebermann
daa246f71d Improve error handling in bootstrap
Separate quick operations (copy a file) from long-running, background
operations (run ngrok).

Use context to cancel background tasks.
2018-05-23 18:51:11 +02:00
Johanan Liebermann
304171b718 Add missing newline 2018-05-23 18:46:38 +02:00
Johanan Liebermann
68f63f8eee Check error from terraformCmd.Wait()
Error is silently ignored at the moment, which causes the process
to continue even if the Terraform executable could not be moved
to /usr/local/bin.
2018-05-23 14:31:49 +02:00
Luke Kysow
f802732990 Merge pull request #119 from runatlantis/workflows
Fix Docker images not building.
2018-04-29 12:22:53 -06:00
Luke Kysow
788159bafb Fix Docker images not building. 2018-04-29 12:08:22 -06:00
Luke Kysow
0ee7ea30f5 Merge pull request #118 from runatlantis/workflows
Test out new CircleCI workflows.
2018-04-29 12:01:09 -06:00
Luke Kysow
337ecb8a47 Test out new CircleCI workflows. 2018-04-29 11:57:09 -06:00
Luke Kysow
81a5a35e15 Merge pull request #116 from runatlantis/release-0.3.9
Release 0.3.9
v0.3.9
2018-04-26 10:07:15 -07:00
Luke Kysow
a31701bf7f Release 0.3.9 2018-04-26 11:06:52 -06:00