Skip to content

Commit

Permalink
Add docs for how to update testing-env image (runatlantis#1581)
Browse files Browse the repository at this point in the history
- Makefile is no longer needed
  • Loading branch information
lkysow authored May 16, 2021
1 parent dbce1d7 commit 8462152
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 11 deletions.
11 changes: 0 additions & 11 deletions testing/Makefile

This file was deleted.

30 changes: 30 additions & 0 deletions testing/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
## Test Docker Image

The Docker image used by the tests is `runatlantis/testing-env`. It's built by the Dockerfie
in this directory.

The image is automatically built by Docker Hub on merges to `master`.

To update the image, create a pull request that updates the Dockerfile and get it merged to `master`.

Wait until the build at https://hub.docker.com/repository/docker/runatlantis/testing-env/builds finishes
and then scroll to the bottom to find output like:

```
01216b26cd75183360909a50217a39d55a9265e7: digest: sha256:9c26943a576bf8aaa7a3790f3f8677c68747114e027cfbc361717f49b958e2d1 size: 4741
Build finished
```

The sha `01216b26cd75183360909a50217a39d55a9265e7` is the tag of the latest image.

In `.circleci/config.yml`, update the image to reference the new tag:

```diff
jobs:
test:
docker:
- - image: runatlantis/testing-env:<old tag>
+ - image: runatlantis/testing-env:<new tag>
```

And open up a PR.

0 comments on commit 8462152

Please sign in to comment.