Commit Graph

16 Commits

Author SHA1 Message Date
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
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
d85662cdf1 Rename default branch to main (#2662)
* Rename default branch to main

* Bump git, curl, and openssl packages
2022-11-14 11:28:29 -06:00
nitrocode
62719ee132 e2e image and testing fixes (#2672)
* build testing-env-image in relevant PRs

* hadolint testing/Dockerfile and rm go get

* revert cimg/go back to circleci/golang image
2022-11-13 13:11:32 -06:00
Rui Chen
b3b110753f workflows: update runner to use ubuntu-22.04 (#2502)
Signed-off-by: Rui Chen <rui@chenrui.dev>

Signed-off-by: Rui Chen <rui@chenrui.dev>
2022-09-07 20:23:57 -04:00
Rui Chen
8d45adb18a Revert "workflows: build image in parallel (#2361)" (#2372)
This reverts commit 8c0ca6bb29.
2022-07-08 12:09:54 -04:00
Clemens Wältken
8c0ca6bb29 workflows: build image in parallel (#2361)
* Enable GitHub matrix strategy to run builds in parallel

* apply matrix build for the other images

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

Co-authored-by: Rui Chen <rui@chenrui.dev>
2022-07-06 22:18:31 -04:00
dependabot[bot]
3ad58e2662 build(deps): bump docker/setup-buildx-action from 1 to 2 (#2249)
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 1 to 2.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/v1...v2)

---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-13 14:28:06 -07:00
dependabot[bot]
f347611648 build(deps): bump docker/build-push-action from 2 to 3 (#2248)
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 2 to 3.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v2...v3)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-13 14:13:46 -07:00
dependabot[bot]
d5f868c2f9 build(deps): bump docker/login-action from 1 to 2 (#2250)
Bumps [docker/login-action](https://github.com/docker/login-action) from 1 to 2.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/v1...v2)

---
updated-dependencies:
- dependency-name: docker/login-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-13 14:13:05 -07:00
dependabot[bot]
7f7fae9112 build(deps): bump docker/setup-qemu-action from 1 to 2 (#2251)
Bumps [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action) from 1 to 2.
- [Release notes](https://github.com/docker/setup-qemu-action/releases)
- [Commits](https://github.com/docker/setup-qemu-action/compare/v1...v2)

---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-13 14:12:39 -07:00
dependabot[bot]
59929b85b4 build(deps): bump actions/checkout from 2 to 3 (#2119)
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-07 11:18:40 -05:00
Rui Chen
317b922c8e build: add concurrency control
Refs: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-using-a-fallback-value

Signed-off-by: Rui Chen <rui@chenrui.dev>
2022-02-23 00:39:13 -05:00
Rui Chen
7b76df7478 build: make multi-platform image for testing-env
Signed-off-by: Rui Chen <rui@chenrui.dev>
2021-12-16 00:40:30 -05:00
Rui Chen
e021dbf8d4 workflow(testing-env-image): update path trigger
Signed-off-by: Rui Chen <rui@chenrui.dev>
2021-09-03 18:30:58 -04:00
rui
ffda2909c3 workflow: add testing-env image build/publish process (#1780)
* workflow: add testing-env image build/publish process

replacing https://hub.docker.com/r/runatlantis/testing-env

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

* refresh the testing-env image

* only runs on master branch

Signed-off-by: Rui Chen <rui@chenrui.dev>
2021-08-30 23:41:27 -04:00