Commit Graph

163 Commits

Author SHA1 Message Date
nitrocode
70497968b4 atlantis-base: use 2022.12.29 (#2892) 2022-12-29 12:30:08 -06:00
Rui Chen
f680e4b4a4 chore(deps): update conftest to 0.37.0 (#2841)
* chore(deps): update conftest to 0.37.0

Signed-off-by: Rui Chen <rui@chenrui.dev>

* e2e: revert conftest update

Signed-off-by: Rui Chen <rui@chenrui.dev>
2022-12-20 22:20:26 -06:00
renovate[bot]
037c064a79 chore(deps): update dependency open-policy-agent/conftest to v0.36.0 (#2820)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-12-18 21:02:27 -06:00
Ken Kaizu
bbc7b9969a feat: renovate handle regexManagers to update conftest/tf versions (#2807)
* chore(deps): add renovate.json

* feat: renovate handle regexManagers to update conftest/tf versions

* Update .github/renovate.json5

* Update .github/renovate.json5

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: PePe Amengual <jose.amengual@gmail.com>
Co-authored-by: nitrocode <7775707+nitrocode@users.noreply.github.com>
2022-12-18 18:21:01 -06:00
nitrocode
82a2f00860 Use atlantis-base:2022.12.12 (#2772) 2022-12-11 22:00:10 -06:00
nitrocode
5773945b4b Separate alpine image (#2770) 2022-12-11 20:22:51 -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
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
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
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
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
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
nitrocode
d3623de03a Reduce image size by rm'ing old tf versions (#2619) 2022-11-14 16:33:28 -06:00
nitrocode
6f7ee2ef39 Bump to atlantis-base:2022.11.13 and use cimg/go:1.19 (#2673)
* Bump to atlantis-base:2022.11.13

* Use cimg/go back image

* Use correct path of cimg/go binary dir

* e2e: use /usr/bin

* e2e: add set -e

* circleci: use testing-env:2022.11.13

* e2e: use /home/circleci/go/bin

* e2e: revert to testing-env:2021.08.31 image
2022-11-13 14:51:18 -06:00
dependabot[bot]
605d8e5b45 build(deps): bump golang from 1.19.2-alpine to 1.19.3-alpine (#2645)
Bumps golang from 1.19.2-alpine to 1.19.3-alpine.

---
updated-dependencies:
- dependency-name: golang
  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-11 11:55:24 -06:00
nitrocode
fe4915a6fc deps: bump terrform to 1.3.4 (#2639) 2022-11-04 09:23:22 -07:00
nitrocode
df94369ae4 deps: bump conftest to 0.35.0 (#2615) 2022-10-24 23:47:22 -05:00
nitrocode
be37b774c3 deps: bump terrform to 1.3.3 and docs update (#2614)
* deps: bump terrform to 1.3.3

* Correct github doc link for token
2022-10-24 23:46:52 -05:00
nitrocode
fa7163dee6 Bump atlantis-base:2022.10.14 (#2589)
* Bump atlantis-base:2022.10.14

* atlantis-image: Build on Dockerfile changes in PRs

* atlantis-image: init on push & pull_request events
2022-10-14 17:28:01 -05:00
Rui Chen
2e13c7034f deps: bump terrform to 1.3.2 (#2569)
Signed-off-by: Rui Chen <rui@chenrui.dev>
2022-10-07 13:56:34 -04:00
Markus Liljedahl
93dd161517 Golang alpine update (#2562)
* Bumping golang image to 1.19.2 running alpine 3.16.2

* Use latest atlantis-base with latest alpine patches
2022-10-06 15:13:25 -07:00
Rui Chen
3b3bc23f69 deps: bump terrform to 1.3.1 (#2543)
Signed-off-by: Rui Chen <rui@chenrui.dev>

Signed-off-by: Rui Chen <rui@chenrui.dev>
2022-09-29 21:40:55 -07:00
Andy Paine
934a669af3 deps: bump tf to 1.3.0 (#2533)
Includes some useful new features like optional variables
2022-09-22 18:29:11 -07:00
nitrocode
21a3f4664c Use hadolint to fix DL4006, SC2086 (#2530) 2022-09-20 21:16:18 -07:00
dependabot[bot]
84304d6aeb build(deps): bump golang from 1.19.0-alpine to 1.19.1-alpine (#2514)
Bumps golang from 1.19.0-alpine to 1.19.1-alpine.

---
updated-dependencies:
- dependency-name: golang
  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-09-12 18:09:05 -07:00
dependabot[bot]
e0626207dd build(deps): bump runatlantis/atlantis-base (#2515)
Bumps runatlantis/atlantis-base from 2022.08.05 to 2022.09.08.

---
updated-dependencies:
- dependency-name: runatlantis/atlantis-base
  dependency-type: direct:production
...

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-09-12 18:05:36 -07:00
Rui Chen
2154678a95 deps: bump conftest to 0.34.0 (#2500)
Signed-off-by: Rui Chen <rui@chenrui.dev>

Signed-off-by: Rui Chen <rui@chenrui.dev>
2022-09-07 19:54:51 -04:00
Rui Chen
08fa65142c deps: bump tf to 1.2.9 (#2499)
Signed-off-by: Rui Chen <rui@chenrui.dev>

Signed-off-by: Rui Chen <rui@chenrui.dev>
2022-09-07 18:57:22 -04:00
dependabot[bot]
674378a1f2 build(deps): bump golang from 1.17-alpine to 1.19.0-alpine (#2433)
Bumps golang from 1.17-alpine to 1.19.0-alpine.

---
updated-dependencies:
- dependency-name: golang
  dependency-type: direct:production
...

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-08-18 11:01:16 -07:00
Li Lin
1b6960a155 deps: bump alpine to v3.16.1 (#2431)
* Bump alpine to 3.16.1

* Use atlantis-base 2022.08.05
2022-08-05 18:50:17 -04:00
Rui Chen
e76739555d deps(conftest): 0.32.1 -> 0.33.0 (#2367)
Signed-off-by: Rui Chen <rui@chenrui.dev>
2022-07-08 15:58:07 -04:00
Rui Chen
78cf6d79d7 deps: tf 1.2.4 (#2363)
Signed-off-by: Rui Chen <rui@chenrui.dev>
2022-07-05 17:08:53 -04:00
Rui Chen
d315e50073 deps: terraform 1.2.3, conftest 0.32.1 (#2328)
* deps: terraform 1.2.3

Signed-off-by: Rui Chen <rui@chenrui.dev>

* deps: conftest 0.32.1

Signed-off-by: Rui Chen <rui@chenrui.dev>
2022-06-16 20:02:50 -04:00
Rui Chen
da0515d180 deps: terraform 1.2.0 (#2267)
* deps: terraform 1.2.0

* support tf 1.1.9
2022-05-20 15:18:59 -04:00
dependabot[bot]
32ae155ea7 build(deps): bump runatlantis/atlantis-base (#2259)
Bumps runatlantis/atlantis-base from 2022.04.19 to 2022.05.13.

---
updated-dependencies:
- dependency-name: runatlantis/atlantis-base
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-16 09:47:33 -07:00
Rui Chen
dc7c65d266 deps: tf 1.1.9 and conftest 0.31.0 (#2218)
* deps: tf 1.1.9

Signed-off-by: Rui Chen <rui@chenrui.dev>

* deps: conftest 0.31.0

Signed-off-by: Rui Chen <rui@chenrui.dev>

* update applications link ref
2022-05-13 14:16:48 -07:00
dependabot[bot]
cbc4ef3700 build(deps): bump runatlantis/atlantis-base (#2219)
Bumps runatlantis/atlantis-base from 2022.03.04 to 2022.04.19.

---
updated-dependencies:
- dependency-name: runatlantis/atlantis-base
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-13 14:16:24 -07:00
Emil 'Skeen' Madsen
d23f7d438e Handle invalid values for TARGETPLATFORM. (#2223)
Report an error during `docker build` if `TARGETPLATFORM` has an unexpected
value.
2022-05-13 14:15:51 -07:00
Rui Chen
8184b51e6c deps: bump terraform to v1.1.8 (#2196) 2022-04-16 18:39:44 -04:00
Rui Chen
534ccb049e deps(docker): bump atlantis-base from 2022.03.03 to 2022.03.04 (multi-platform image)
Signed-off-by: Rui Chen <rui@chenrui.dev>
2022-03-04 14:05:06 -05:00
Jeppe Fihl-Pearson
19d41abc3c fix(docker): Multi-arch Docker images, attempt two (#2114)
* fix(docker): fix base image for multi-platform build (#2099)

* Correct indentation of run commands

* Split installation of packages into the ones needed at run time and build time

This allows us to now repeat the packages which need to be uninstalled again by
making use of a virtual package, which - when removed - removes the packages
installed as a dependency of it.

* Remove unnecessary `rm -rf /var/cache/apk/*` command

It's no needed when `apt add` is run with the `--no-cache` option.

* Add vertical spacing so it's clearer what is happening when

* Test the downloaded binaries to make sure they work on the platform

This can help find issues where binaries are downloaded for the wrong platform
compared to the architecture the Docker image is built for.

* Install dumb-init via apk

It's available as a package for Alpine Linux in version 1.2.5 as well, which
makes it easier to handle for the different architectures.

* Get git-lfs binaries in the right architecture for the Docker image

This makes use of the `TARGETPLATFORM` argument which automatically is
populated by Docker BuildKit with a string such as "linux/amd64" when the image
is being build for an x86_64 architecture.

* Install gosu for the right architecture

The `case` statement was taken from
https://github.com/BretFisher/multi-platform-docker-build as a way of
translating the platform name into what we needed for downloading gosu.

* fix(docker): fix installation of git-lfs in armv7 image (#2100)

This uses a similar pattern than what is used for `GOSU_ARCH` to map the
`TARGETPLATFORM` argument into the name of the architecture git-lfs use for
their release binaries, as "linux/arm/v7" otherwise would be mapped into "v7"
which is wrong.

* fix(docker): download Terraform and conftest versions maching image architecture (#2101)

* Remove Terraform versions from Docker image which don't have all archs

Terraform versions earlier than 0.11.15 does not have binaries available for
both amd64, arm64 and armv7, so are being dropped as we can't install the older
versions in all the architectures the Docker image is built for.

* Download Terraform version depending on the architecture Docker image is for

This avoids us having arm64 binaries for the ARM Docker images, which won't
work.

* Download arm64 conftest binaries for arm64 Docker image

This doesn't fix the armv7 Docker image because conftest doesn't have a binary
available for that, so it for now still downloads the x86_64 binary, which is
likely to not work - but it's the same as it did before.

* Correct path to dumb-init in docker-entrypoint.sh

The path changed after dumb-init was switched to be installed via `apk` rather
than downloaded directly as a binary.
2022-03-04 13:51:00 -05:00
rui
46cd2fb49b deps: tf 1.1.7 (#2108)
Signed-off-by: Rui Chen <rui@chenrui.dev>
2022-03-02 20:44:28 -05:00
Rui Chen
8337262fd2 deps(docker): bump atlantis-base from 2022.03.02 to 2022.03.03
Signed-off-by: Rui Chen <rui@chenrui.dev>
2022-03-02 20:09:47 -05:00
rui
1b145dac27 fix(docker): fix docker runtime issue (#2106)
* debug setup

* Revert "fix(docker): download Terraform and conftest versions maching image architecture (#2101)"

This reverts commit 579e583740.

* Revert "fix(docker): fix installation of git-lfs in armv7 image (#2100)"

This reverts commit 8af78838b6.

* Revert "fix(docker): fix base image for multi-platform build (#2099)"

This reverts commit 571543fdfb.

* Revert "debug setup"

This reverts commit 274501ab6e.
2022-03-02 20:01:28 -05:00
Jeppe Fihl-Pearson
579e583740 fix(docker): download Terraform and conftest versions maching image architecture (#2101)
* Remove Terraform versions from Docker image which don't have all archs

Terraform versions earlier than 0.11.15 does not have binaries available for
both amd64, arm64 and armv7, so are being dropped as we can't install the older
versions in all the architectures the Docker image is built for.

* Download Terraform version depending on the architecture Docker image is for

This avoids us having arm64 binaries for the ARM Docker images, which won't
work.

* Download arm64 conftest binaries for arm64 Docker image

This doesn't fix the armv7 Docker image because conftest doesn't have a binary
available for that, so it for now still downloads the x86_64 binary, which is
likely to not work - but it's the same as it did before.
2022-03-02 12:20:00 -05:00
Rui Chen
23e2b155bd deps(docker): use atlantis-base:2022.03.02
Signed-off-by: Rui Chen <rui@chenrui.dev>
2022-03-02 00:32:39 -05:00
dependabot[bot]
fd02ebedbd build(deps): bump runatlantis/atlantis-base (#2088)
Bumps runatlantis/atlantis-base from 2021.12.15 to 2022.02.23.

---
updated-dependencies:
- dependency-name: runatlantis/atlantis-base
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-01 22:43:45 -05:00
rui
60a168d417 deps: tf 1.1.6 (#2071)
Signed-off-by: Rui Chen <rui@chenrui.dev>
2022-02-16 15:42:38 -05:00
Rob Lazzurs
6d2ad22a0c deps: terraform 1.1.5 (#2042)
Upgrading to the latest Terraform release
2022-02-02 17:54:30 -05:00