Commit Graph

419 Commits

Author SHA1 Message Date
Luke Kysow
6bf86df046 Merge pull request #82 from runatlantis/speedup
Add plugin cache. Don't run workspace if unneeded.
2018-03-20 15:08:47 -07:00
Luke Kysow
b507bd0712 Add plugin cache. Don't run workspace if unneeded.
- run terraform with TF_PLUGIN_CACHE_DIR set so that terraform init will
be faster.
- check which workspace we're in and don't switch unless we need to.
- run terraform with TF_IN_AUTOMATION set so the plan output doesn't
have instructions that don't make sense. Ex.
```
This plan was saved to: /tmp/atlantis/data/repos/lkysow/atlantis-example/3/default/default.tfplan

To perform exactly these actions, run the following command to apply:
    terraform apply "/tmp/atlantis/data/repos/lkysow/atlantis-example/3/default/default.tfplan"
```
2018-03-20 15:05:12 -07:00
Luke Kysow
2dbb894a67 Merge pull request #81 from runatlantis/bootstrap
Error during atlantis bootstrap if ngrok running
2018-03-20 14:05:28 -07:00
Luke Kysow
9ce2704cd8 Merge pull request #78 from runatlantis/workspace-validation
Validate workspace the same way as Terraform.
2018-03-20 12:55:22 -07:00
Luke Kysow
dcb73d2f31 Error during atlantis bootstrap if ngrok running 2018-03-20 12:46:22 -07:00
Luke Kysow
9b80b0f66f Merge pull request #80 from runatlantis/envvars
Allow specifying config values as environment variables
2018-03-20 12:19:52 -07:00
Luke Kysow
c8f68e2297 Refactor env var work and add tests.
- added tests
- moved AutomaticEnv() call into the init() function of the server flag
so it's set when we run the tests. Before it was in main().
- Set SetTypeByDefaultValue to true so boolean flags can be specified as
env vars.
2018-03-20 12:13:45 -07:00
Luke Kysow
85ab7475f8 Validate workspace the same way as Terraform.
Saw in the TF code how they were validating workspace names
and decided to do the same. '..' is actually a valid TF workspace but we
don't support that.
2018-03-19 20:27:02 -07:00
Paul Salaberria
8c2e02519e Get configs from environment variables 2018-03-17 00:28:10 +01:00
Luke Kysow
c7c582cec4 Merge pull request #76 from runatlantis/builds
Fix Dockerfile build failures.
2018-03-16 13:55:47 -07:00
Luke Kysow
2ead2fd800 Fix Dockerfile build failures.
Following advice from https://github.com/tianon/gosu/issues/35
2018-03-16 13:52:37 -07:00
Luke Kysow
b39cdd74d8 Merge pull request #75 from runatlantis/builds
Workaround for gometalint randomly failing.
2018-03-16 13:29:57 -07:00
Luke Kysow
64dcd781f8 Workaround for gometalint randomly failing. 2018-03-16 13:26:50 -07:00
Luke Kysow
e72e29e792 Merge pull request #74 from runatlantis/fork-pr-building
Don't run e2e tests on fork PRs.
2018-03-16 13:22:20 -07:00
Luke Kysow
48763e7345 Don't run e2e tests on fork PRs. 2018-03-16 13:18:43 -07:00
Luke Kysow
7684d948ec Merge pull request #73 from runatlantis/go-report
Add goreport card badge.
2018-03-16 13:15:31 -07:00
Michael Simo
fc947004eb Update extra_arguments schema example (#70)
* Removed reference to tfvars as this was misleading when used in
conjuntion with preplan.
* updated the terraform_version example that's referenced
when doing a mock run of the schema.
* Updated varfile name to recommended name
2018-03-16 13:09:39 -07:00
Luke Kysow
20ba1f59f7 Add go report card badge to README. 2018-03-16 13:05:32 -07:00
Luke Kysow
566febeec4 Merge pull request #69 from runatlantis/license
Add Apache 2 license and copyright.
2018-03-15 17:51:19 -07:00
Luke Kysow
df13cb6ff3 Merge branch 'master' into license 2018-03-15 17:51:05 -07:00
Luke Kysow
8aca81966f Add Apache 2 license and copyright.
Add Apache 2 license and Hootsuite copyright to all golang
files. Add a disclaimer that the files have been modified
hereafter by contributors to this repo in order to abide
by the Apache 2 license requirements.
2018-03-15 17:25:02 -07:00
Luke Kysow
59bed85a51 Merge pull request #63 from runatlantis/readme
Update README to repo-whitelist clearer.
2018-03-14 20:44:04 -07:00
Luke Kysow
fa4cc85453 Update README to repo-whitelist clearer. 2018-03-14 20:25:00 -07:00
Luke Kysow
2b63abba06 Merge pull request #67 from runatlantis/release-0.3.3
Release 0.3.3
v0.3.3
2018-03-14 15:44:30 -07:00
Luke Kysow
599886b57b Release 0.3.3 2018-03-14 15:40:54 -07:00
Luke Kysow
28a9a1b220 Merge pull request #66 from runatlantis/comment-size
Split GitHub comments into multiple if over max.
2018-03-14 15:36:56 -07:00
Luke Kysow
b7e58e2378 Split GitHub comments into multiple if over max.
Fixes #55. GitHub will throw an error if the comment is over
65535 characters. Now we will split up a comment into multiple
comments if it's over that size.
2018-03-14 15:28:22 -07:00
Luke Kysow
792df5c0f9 Merge pull request #64 from runatlantis/website-version
Atlantis version in footer
2018-03-14 13:18:45 -07:00
Luke Kysow
5ba6be893a Merge pull request #65 from psalaberria002/patch-1
Add psalaberria002 to credits
2018-03-14 13:17:51 -07:00
psalaberria002
c8960fa49a Add psalaberria002 to credits 2018-03-14 19:46:35 +01:00
Luke Kysow
359dd43f27 Put Atlantis version in footer. 2018-03-14 10:16:48 -07:00
Luke Kysow
a0f05f7001 Use const for version. Fix tests, format. 2018-03-14 10:04:09 -07:00
Luke Kysow
d8569d366a Merge pull request #57 from psalaberria002/version
Show atlantis version in index page
2018-03-14 09:57:52 -07:00
Luke Kysow
1b00e5a0bb Update web_templates.go 2018-03-14 09:57:21 -07:00
Luke Kysow
d9ff7cff7b Don't rename some comments 2018-03-12 09:40:46 -07:00
Paul Salaberria
1154a09536 Rename config structs
- Config to UserConfig
- FlagNames to Config
- Use AtlantisVersion to be clear
2018-03-11 23:38:33 +01:00
Paul Salaberria
d8f5ff71f3 Show atlantis version in index page 2018-03-11 23:12:37 +01:00
Luke Kysow
10e1bf0aaf Merge pull request #61 from runatlantis/build-issues
Fix gometalint errors.
2018-03-11 14:29:00 -07:00
Luke Kysow
d9595867cd Fix gometalint errors. 2018-03-11 14:19:16 -07:00
Luke Kysow
7d38501164 Merge pull request #60 from runatlantis/build-issues
Use ipv4 keyservers to fix failing builds.
2018-03-11 14:13:30 -07:00
Luke Kysow
18ef0df438 Use ipv4 keyservers to fix failing builds.
See https://github.com/nodejs/docker-node/issues/380
2018-03-11 14:12:52 -07:00
Luke Kysow
9d93674341 Merge pull request #59 from runatlantis/release-0.3.2
Release v0.3.2
v0.3.2
2018-03-11 13:43:48 -07:00
Luke Kysow
8ea055e103 Release v0.3.2 2018-03-11 13:42:35 -07:00
Luke Kysow
cb9470bed3 Merge pull request #56 from runatlantis/repo-whitelist
Security improvements
2018-03-11 13:40:33 -07:00
Luke Kysow
32e0b4003e Small refactor to events_controller. Final tests. 2018-03-11 13:30:01 -07:00
Luke Kysow
0e6bae7226 Output usage on error. 2018-03-11 12:51:11 -07:00
Luke Kysow
394cd52c6d Fix bug with whitelisting. 2018-03-08 23:40:55 -08:00
Luke Kysow
8ee9333e0d Use repo whitelist on atlantis bootstrap.
Fix e2e tests.
2018-03-08 23:14:21 -08:00
Luke Kysow
f91947a397 Comment with error when unused arguments. 2018-03-08 23:10:02 -08:00
Luke Kysow
c9a9c2deb3 Update README. Fix gometalint errors. 2018-03-08 22:40:00 -08:00