Commit Graph

2135 Commits

Author SHA1 Message Date
Tim O'Guin
8989526360 Upgrade latest TF to 0.11.5 in Dockerfile 2018-03-30 09:16:14 -05:00
Luke Kysow
7d181d27a6 Merge pull request #94 from runatlantis/release-0.3.6
Release 0.3.6.
v0.3.6
2018-03-29 15:42:41 -07:00
Luke Kysow
3824e3c2e8 Release 0.3.6. 2018-03-29 15:27:37 -07:00
Luke Kysow
e84ce0b394 Merge pull request #93 from runatlantis/bootstrap
Use custom ngrok config so we can specify api url.
2018-03-29 15:23:23 -07:00
Luke Kysow
551f895087 Use custom ngrok config so we can specify api url.
We use a config file so we can set ngrok's API port (web_addr). We use
the API to get the public URL and if there's already ngrok running, it
will just choose a random API port and we won't be able to get the right
url.
2018-03-29 15:11:16 -07:00
Luke Kysow
9e47d11bbe Merge pull request #91 from runatlantis/newline-flags
Add newlines between flags in help output.
2018-03-28 12:26:21 -07:00
Luke Kysow
74d4cc6cef Add newlines between flags in help output.
- This will make the help output easier to read. To accomplish this, we
needed to not set defaults via cobra because then the default would be
printed on another line which looks bad. So now we set the defaults
ourselves.
- Also had to update spf13/pflag to the version that supports newlines
in flag descriptions.
2018-03-28 12:19:48 -07:00
Luke Kysow
5d1722be70 Merge pull request #87 from runatlantis/repo-host-refactor
Move vcs host type (github or gitlab) into `models` package
2018-03-28 12:18:54 -07:00
Luke Kysow
f21cf09417 Refactor to use VCS Host in Repo model. 2018-03-27 12:43:20 -07:00
Luke Kysow
7117586bc6 Move VCSHost into models.
This will enable using the VCS type in other packages and avoid circular
dependencies. It also makes sense that this is part of the Repo model.
2018-03-27 12:00:52 -07:00
Luke Kysow
2058acf5d2 Merge pull request #85 from runatlantis/release-0.3.5
Release 0.3.5.
v0.3.5
2018-03-23 13:13:05 -07:00
Luke Kysow
823cc7c5cf Release 0.3.5. 2018-03-23 13:09:28 -07:00
Luke Kysow
9615702287 Merge pull request #84 from runatlantis/log-status
Log if err updating commit status.
2018-03-23 12:38:08 -07:00
Luke Kysow
102d3f60c2 Log if err updating commit status. 2018-03-23 11:06:51 -07:00
Luke Kysow
0ad25e68f1 Merge pull request #83 from runatlantis/release-0.3.4
Release 0.3.4.
v0.3.4
2018-03-20 15:31:57 -07:00
Luke Kysow
eb5f731d91 Release 0.3.4. 2018-03-20 15:19:30 -07:00
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