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
Luke Kysow
3138842b98
Merge pull request #115 from runatlantis/gitlab-approvals
...
Fix bug with GitLab approvals not being required
2018-04-26 10:04:09 -07:00
Luke Kysow
64ebc8dd2f
Fix bug with GitLab approvals not being required
...
Updated to a patched version of go-gitlab with the correct fields set.
2018-04-26 10:54:27 -06:00
Luke Kysow
a89e2a111b
Merge pull request #109 from clburlison/patch-1
...
docs: Minor correction with regards to `-var-file`
2018-04-18 18:56:10 -07:00
Clayton Burlison
5b5ccc391f
docs: Minor correction with regards to -var-file
...
`-tfvars=` isn't a valid terraform argument.
2018-04-18 10:19:37 -05:00
Luke Kysow
c8fa9fc2d0
Merge pull request #107 from 247Sports/task/upgrade-to-tf-0.11.7
...
Add checksum verification for Terraform binaries, upgrade Terraform to 0.11.7
v0.3.8
2018-04-15 20:31:09 -07:00
Luke Kysow
3f7253eb37
Update CHANGELOG.md
2018-04-15 20:30:32 -07:00
Tim O'Guin
c47b6df350
Bump Atlantis version to 0.3.8
2018-04-12 19:34:45 -05:00
Tim O'Guin
9a91e2c39e
Upgrade Terraform to 0.11.7 in Docker image, add checksum verification
2018-04-12 19:34:45 -05:00
Chase Coney
3dcabc4d5b
Upgrade Terraform Version to Latest Stable
2018-04-12 11:40:41 -05:00
Luke Kysow
68596c376b
Merge pull request #105 from runatlantis/release-0.3.7
...
Release 0.3.7
v0.3.7
2018-04-09 08:28:31 -07:00
Luke Kysow
0cf4836222
Release 0.3.7
2018-04-09 08:09:57 -07:00
Luke Kysow
eb7d6c6a0b
Merge pull request #101 from runatlantis/readme-update
...
Document Atlantis user requirements.
2018-03-30 13:38:05 -07:00
Luke Kysow
6c86d13bf8
Merge pull request #100 from runatlantis/whitelist-case
...
Make repo whitelist case insensitive.
2018-03-30 13:36:52 -07:00
Luke Kysow
497850a1c4
Document Atlantis user requirements.
...
Atlantis must be a collaborator to set commit statuses.
2018-03-30 13:35:36 -07:00
Luke Kysow
3f5ad53af6
Make repo whitelist case insensitive.
...
This is okay to do because it's a better user experience and because
GitLab and GitHub project names are case insensitive as well.
2018-03-30 12:59:22 -07:00
Luke Kysow
f016d642ae
Merge pull request #98 from 247Sports/task/tf-0-11-5
...
Upgrade latest TF to 0.11.5 in Dockerfile
2018-03-30 12:38:04 -07:00
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