Benoît Sauvère
db9f02265a
docs(changelog): explicitly list the tf versions <1.x removal in the CHANGELOG.md ( #2780 )
...
* docs(changelog): explicitly list the tf versions <1.x removal in the CHANGELOG.md
* Apply suggestions from code review
Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com >
v0.21.1-pre.20221213
2022-12-13 00:05:27 -06:00
Jon Gilmore
f974fb5113
docs(ha): wording update when using redis ( #2771 )
...
* docs(ha): wording update when using redis
Because it is now possible to use redis as a backend locking DB for Atlantis, this FAQ should be updated.
* Update runatlantis.io/docs/faq.md
Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com >
Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com >
2022-12-12 09:23:20 -06:00
Darren Worrall
a56258435b
Document the --quiet-policy-checks in the policy check doc ( #2777 )
...
* Document the `--quiet-policy-checks` in the policy check doc
* Update runatlantis.io/docs/policy-checking.md
Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com >
2022-12-12 09:16:14 -06:00
dependabot[bot]
183c9c10c7
build(deps): bump github.com/go-test/deep from 1.0.8 to 1.1.0 ( #2779 )
...
Bumps [github.com/go-test/deep](https://github.com/go-test/deep ) from 1.0.8 to 1.1.0.
- [Release notes](https://github.com/go-test/deep/releases )
- [Changelog](https://github.com/go-test/deep/blob/master/CHANGES.md )
- [Commits](https://github.com/go-test/deep/compare/v1.0.8...v1.1.0 )
---
updated-dependencies:
- dependency-name: github.com/go-test/deep
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-12 09:11:12 -06:00
dependabot[bot]
7c054e237c
build(deps): bump golang.org/x/term from 0.2.0 to 0.3.0 ( #2778 )
...
Bumps [golang.org/x/term](https://github.com/golang/term ) from 0.2.0 to 0.3.0.
- [Release notes](https://github.com/golang/term/releases )
- [Commits](https://github.com/golang/term/compare/v0.2.0...v0.3.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/term
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-12 09:10:34 -06:00
nitrocode
82a2f00860
Use atlantis-base:2022.12.12 ( #2772 )
2022-12-11 22:00:10 -06:00
nitrocode
785b4cf76f
Use correct image suffix for alpine/debian ( #2775 )
2022-12-11 21:49:51 -06:00
nitrocode
7a29286c3c
Use correct image suffix for alpine/debian ( #2774 )
2022-12-11 21:07:49 -06:00
nitrocode
cd838c8785
alpine: Pin git=2.38.2-r0 ( #2773 )
2022-12-11 20:53:28 -06:00
nitrocode
5773945b4b
Separate alpine image ( #2770 )
2022-12-11 20:22:51 -06:00
Mark Keisler
855717271f
docs: terraform version usage after allowing additional required_version specifiers ( #2760 )
...
* Clarify the docs about setting the terraform version, especially since
v0.21.0
* Address comments about adding further detail and examples
Also updated versions mentioned to be more recent.
2022-12-11 11:14:08 -06:00
nitrocode
9ca57d6189
Bump base to 2022-12-10 ( #2769 )
2022-12-11 00:54:29 -06:00
nitrocode
f8a2091929
Bump alpine-3.17 ( #2768 )
2022-12-11 00:27:03 -06:00
Ken Kaizu
4d957836ad
Enable or disable repo_locking per repo in repos.yaml and atlantis.yaml ( #2700 )
...
* disable repo locking repos.yaml and atlantis.yaml with allow override
* rename disable_repo_locking into repo_locking
* add both enable/disable repo_locking test
Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com >
2022-12-09 16:13:31 -06:00
Fabiano Soares Honorato
66dc30e755
feat: prevent planning and applying directories outside PR scope using --restrict-file-list ( #2440 )
...
* Add --strict-plan-file-list config
* Update server.go
* Update server-configuration.md
* Update server_test.go
* Run gofmt -w
* Add --strict-plan-file-list for projects
* Add --strict-plan-file-list tests
* Change --strict-plan-file-list to --restrict-file-list
* Update --restrict-file-list documentation
* Update --restrict-file-list and --enable-regexp-cmd documentation
Co-authored-by: Fabiano Honorato <fabiano.honorato@ifood.com.br >
Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com >
Co-authored-by: PePe Amengual <jose.amengual@gmail.com >
2022-12-09 09:33:40 -06:00
Michel Z. Santello
c800f706e4
fix(gitlab_client): prevent duplicate pipelines in gitlab merge requests ( #2745 )
...
* fix(gitlab_client): change CommitStatus update logic to prevent duplicated pipelines in MRs
* chore: refactor refTarget logic
* chore: fix tests
* chore: fix lint
* chore: remove nested if
v0.21.0-pre.20221207
2022-12-07 13:14:39 -08:00
Christoffer Nicklasson
b6e1c61127
Update using-slack-hooks.md ( #2759 )
2022-12-07 09:47:38 -06:00
Jakub Igła
494a63f8cb
docs: Add a new Azure deployment method ( #2741 )
...
* docs: Add a new Azure deployment method
* docs: Revert the old ACI link while keeping the new one
* docs: Improve wording for Azure deployment
2022-12-06 21:57:46 -06:00
Aiman Ismail
fe207ae32d
docs: add example how to customize the conftest command ( #2727 )
...
* docs: add example how to customize the conftest command
* fixed PR review comments
* rerun CI
* remove problematic url
Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com >
Co-authored-by: PePe Amengual <jose.amengual@gmail.com >
2022-12-06 21:56:51 -06:00
dependabot[bot]
34ee801158
build(deps): bump github.com/golang-jwt/jwt/v4 from 4.4.2 to 4.4.3 ( #2754 )
...
Bumps [github.com/golang-jwt/jwt/v4](https://github.com/golang-jwt/jwt ) from 4.4.2 to 4.4.3.
- [Release notes](https://github.com/golang-jwt/jwt/releases )
- [Changelog](https://github.com/golang-jwt/jwt/blob/main/VERSION_HISTORY.md )
- [Commits](https://github.com/golang-jwt/jwt/compare/v4.4.2...v4.4.3 )
---
updated-dependencies:
- dependency-name: github.com/golang-jwt/jwt/v4
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-06 20:27:15 -06:00
dependabot[bot]
887f4ed8c6
build(deps): bump github.com/Masterminds/sprig/v3 from 3.2.2 to 3.2.3 ( #2753 )
...
Bumps [github.com/Masterminds/sprig/v3](https://github.com/Masterminds/sprig ) from 3.2.2 to 3.2.3.
- [Release notes](https://github.com/Masterminds/sprig/releases )
- [Changelog](https://github.com/Masterminds/sprig/blob/master/CHANGELOG.md )
- [Commits](https://github.com/Masterminds/sprig/compare/v3.2.2...v3.2.3 )
---
updated-dependencies:
- dependency-name: github.com/Masterminds/sprig/v3
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-06 20:27:08 -06:00
dependabot[bot]
14a46df1cd
build(deps): bump go.uber.org/zap from 1.23.0 to 1.24.0 ( #2752 )
...
Bumps [go.uber.org/zap](https://github.com/uber-go/zap ) from 1.23.0 to 1.24.0.
- [Release notes](https://github.com/uber-go/zap/releases )
- [Changelog](https://github.com/uber-go/zap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/uber-go/zap/compare/v1.23.0...v1.24.0 )
---
updated-dependencies:
- dependency-name: go.uber.org/zap
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-06 19:56:58 -06:00
dependabot[bot]
1fbbccac2e
build(deps): bump runatlantis/atlantis-base ( #2750 )
...
Bumps runatlantis/atlantis-base from 2022.11.24 to 2022.12.05.
---
updated-dependencies:
- dependency-name: runatlantis/atlantis-base
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-05 12:56:58 -06:00
dependabot[bot]
20d282fffa
build(deps): bump golang.org/x/text from 0.4.0 to 0.5.0 ( #2751 )
...
Bumps [golang.org/x/text](https://github.com/golang/text ) from 0.4.0 to 0.5.0.
- [Release notes](https://github.com/golang/text/releases )
- [Commits](https://github.com/golang/text/compare/v0.4.0...v0.5.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/text
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-05 12:39:26 -06:00
Jeppe Fihl-Pearson
b2bcd48feb
Cache downloaded Go dependencies and Atlantis compilation in Docker ( #2738 )
...
This has the potential to speed up rebuilds of the Atlantis container
significantly, especially for non-x86 platforms which are emulated when
done in GitHub Actions.
It works by using cache mounts:
https://docs.docker.com/engine/reference/builder/#run---mounttypecache .
They mean we can have specific paths set that are carried over from one
image build to the next, regardless of which files are changed in the
project. The files are however at the same time not part of the final
image, which reduces the generated "builder" image from 1.66 GB to just
386 MB on the current main branch.
In my local tests, which doesn't make use of emulation, I saw a drop
for the "go build" step going from taking just over 40 seconds with an
empty cache to around 1 second when I make a one character change to a
Go source file. That is otherwise a change that prior to this would
cause a complete rebuild of the Docker image layer.
Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com >
2022-12-04 21:47:43 -06:00
Jeppe Fihl-Pearson
124eb6b4a8
Use GitHub Actions cache when building Docker images ( #2737 )
...
* Use GitHub Actions cache when building Docker images
This firstly removes the `pull: true` option from all
`build-push-action` invocations, as it was assumed it caused Docker to
pull the existing image first before building the new one, where as it
instead makes sure the base image is up to date prior to starting the
build.
Instead the `cache-from` and `cache-to` options are added which cause
the action to store and retrieve caches for each layer from GitHub
Actions' cache system as documented at
https://docs.docker.com/build/ci/github-actions/examples/#cache-backend-api .
* Pin exact Go version in testing image
This matches what is done for the production image.
2022-12-04 21:16:57 -06:00
dependabot[bot]
479bed46d9
build(deps): bump decode-uri-component from 0.2.0 to 0.2.2 ( #2748 )
...
Bumps [decode-uri-component](https://github.com/SamVerschueren/decode-uri-component ) from 0.2.0 to 0.2.2.
- [Release notes](https://github.com/SamVerschueren/decode-uri-component/releases )
- [Commits](https://github.com/SamVerschueren/decode-uri-component/compare/v0.2.0...v0.2.2 )
---
updated-dependencies:
- dependency-name: decode-uri-component
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-04 21:11:59 -06:00
Chris Sainty
e60dd843f4
feat: support atlantis.yaml without defined projects ( #2300 )
...
* Support atlantis.yaml without defined projects
* Update server/events/project_command_builder.go
* Update server/events/project_command_builder.go
* Correct test of no modified projects
* Flip if statement
* Remove duplicate check on hasRepoCfg
Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com >
2022-12-01 01:03:27 -08:00
Rui Chen
733e51cbb3
deps: update to use tf 1.3.6 ( #2744 )
...
Signed-off-by: Rui Chen <rui@chenrui.dev >
Signed-off-by: Rui Chen <rui@chenrui.dev >
2022-11-30 16:15:59 -08:00
noah
61bcfbab2b
feat: auto-plan projects when modules change ( #2507 )
...
* feat: auto-plan projects when modules change
Fixes #920
* rename Downstream->Dependent; docs cleanup
* chore: gofmt -s
2022-11-28 14:12:29 -08:00
PePe Amengual
cf8db0cc54
Release 0.21.0 ( #2734 )
...
* Release 0.21.0
* Release 0.21.0
v0.21.0
2022-11-28 12:26:41 -08:00
dependabot[bot]
f5b06b68a4
build(deps): bump github.com/xanzy/go-gitlab from 0.74.0 to 0.76.0 ( #2732 )
...
Bumps [github.com/xanzy/go-gitlab](https://github.com/xanzy/go-gitlab ) from 0.74.0 to 0.76.0.
- [Release notes](https://github.com/xanzy/go-gitlab/releases )
- [Changelog](https://github.com/xanzy/go-gitlab/blob/master/releases_test.go )
- [Commits](https://github.com/xanzy/go-gitlab/compare/v0.74.0...v0.76.0 )
---
updated-dependencies:
- dependency-name: github.com/xanzy/go-gitlab
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-28 11:27:16 -08:00
dependabot[bot]
2cecda153b
build(deps): bump github.com/go-redis/redis/v9 ( #2733 )
...
Bumps [github.com/go-redis/redis/v9](https://github.com/go-redis/redis ) from 9.0.0-rc.1 to 9.0.0-rc.2.
- [Release notes](https://github.com/go-redis/redis/releases )
- [Changelog](https://github.com/go-redis/redis/blob/master/CHANGELOG.md )
- [Commits](https://github.com/go-redis/redis/compare/v9.0.0-rc.1...v9.0.0-rc.2 )
---
updated-dependencies:
- dependency-name: github.com/go-redis/redis/v9
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-28 13:14:55 -05:00
dependabot[bot]
4817ecbb64
build(deps): bump runatlantis/atlantis-base ( #2731 )
...
Bumps runatlantis/atlantis-base from 2022.11.13 to 2022.11.24.
---
updated-dependencies:
- dependency-name: runatlantis/atlantis-base
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-28 09:28:25 -08:00
nitrocode
3179467e56
docs: add PR template ( #2718 )
2022-11-26 20:49:09 -05:00
dependabot[bot]
f1a6481846
build(deps): bump minimatch from 3.0.4 to 3.1.2 ( #2723 )
...
Bumps [minimatch](https://github.com/isaacs/minimatch ) from 3.0.4 to 3.1.2.
- [Release notes](https://github.com/isaacs/minimatch/releases )
- [Commits](https://github.com/isaacs/minimatch/compare/v3.0.4...v3.1.2 )
---
updated-dependencies:
- dependency-name: minimatch
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-26 20:48:35 -05:00
nitrocode
e2b4ec444b
atlantis-image: yaml fix using a separate env var ( #2725 )
...
* atlantis-image: yaml fix using a separate env var
* Update atlantis-image.yml
* Update atlantis-image.yml
* Update atlantis-image.yml
* Update atlantis-image.yml
* Update atlantis-image.yml
* Update atlantis-image.yml
2022-11-25 21:57:16 -06:00
nitrocode
a0c7dd8d98
atlantis-image: yaml fix using single quotes ( #2722 )
2022-11-25 20:57:07 -06:00
nitrocode
629e688b0c
Allow --gh-team-allowlist to work with team names and slugs ( #2719 )
...
* Add team slugs
* Expand test to include both names and slugs
* docs: add version document of flag before/after
* docs: this will be merged for next release
2022-11-25 12:47:49 -06:00
nitrocode
f3bf05e26c
Run docker pull before building images ( #2714 )
...
* atlantis-base: Add pull: true
* atlantis-image: Add pull: true
* testing-env-image: Add pull: true
2022-11-24 14:06:46 -06:00
nitrocode
d4c7ccea83
Run PR checks if the PR is moved to ready_for_review type ( #2713 )
...
* Update lint.yml
* Update test.yml
2022-11-24 11:43:45 -06:00
nitrocode
ad79d0708b
docs: Small updates 🦃 ( #2711 )
...
* Add missing pages
* Update server-configuration.md
* Update test.yml
* Update lint.yml
* Update test.yml
* Update lint.yml
* Update server-configuration.md
* Update server-configuration.md
* Update server-configuration.md
* Update server-configuration.md
* Update server-configuration.md
* Update server-configuration.md
* Update server-configuration.md
* Update server-configuration.md
2022-11-23 19:59:50 -06:00
Marcus Ramberg
ada4e53931
fix: Add server flag for quiet policy checks as documented ( #2705 )
2022-11-21 08:08:54 -06:00
nitrocode
065adc3214
chore: rm duplicate make test-all, no push to latest on refs with "pre" ( #2703 )
...
* Remove duplicate make test-all in circleci
* Prevent pushing latest tag on refs with "pre"
* DRY up atlantis-image.yaml
2022-11-21 00:05:17 -06:00
FBLGit
f8b1ea9b88
Detect terraform versions using >= and ~> specifiers ( #1776 )
...
* Refactor TFVersion from Dir with tfswitch lib
* Added tests and cleaned up code
* linted fmtd
* fixed conflict go.mod
* bumped to tf1.0.6
* bumped go.mod
* Update project_command_context_builder.go
* Bump warrensbox/terraform-switcher
* Fix tests
* rm redundant mocks library import
Co-authored-by: xmurias <xmurias@gmail.com >
Co-authored-by: Xavier <77047592+xavipanda@users.noreply.github.com >
Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com >
v0.21.0-pre.20221120
2022-11-20 21:27:17 -06:00
Ken Kaizu
cde8faaf57
Fix GitHub app uses slug as user name to work --hide-prev-plan-comments correctly ( #2697 )
...
* Fix GitHub app uses slug as user name
* Update server/events/vcs/github_credentials_test.go
Co-authored-by: PePe Amengual <jose.amengual@gmail.com >
Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com >
Co-authored-by: PePe Amengual <jose.amengual@gmail.com >
2022-11-20 16:18:34 -06:00
Alberto Rojas
949ee3fa5f
metrics: Add Metrics tags to multiple Scopes ( #2687 )
...
* metrics: Add Metrics tags to multiple Scopes
* metrics: Fix base_repo and pr_number
* metrics: Refactor SetScope to SetScopeTags
* metrics: Add SetGitScopeTags function
* metrics: docs reword project_context SetScopeTags description
* metrics: test Add TestNewScope_PrometheusTaggingCapabilities
2022-11-19 08:31:46 -06:00
ribejara-te
020eeba85d
upgrade Git clone locking mechanism to go1.19 ( #2521 )
...
Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com >
2022-11-18 18:19:24 -06:00
nitrocode
89e035cae5
Bump more dependencies ( #2692 )
2022-11-17 18:45:29 -06:00
Rui Chen
82e191f547
deps: bump to use tf 1.3.5 ( #2691 )
...
Signed-off-by: Rui Chen <rui@chenrui.dev >
Signed-off-by: Rui Chen <rui@chenrui.dev >
2022-11-17 18:17:26 -06:00