Skip to content

Commit

Permalink
Add dind auto test
Browse files Browse the repository at this point in the history
  • Loading branch information
idodod committed Apr 2, 2024
1 parent 817751f commit 506a2ce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions common/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ IMPORT github.com/earthly/earthly/buildkitd:$EARTHLY_REPO_VERSION AS earthly
IMPORT github.com/earthly/earthly/tests/with-docker:$EARTHLY_REPO_VERSION AS with-docker
IMPORT github.com/earthly/earthly/tests/with-docker-compose:$EARTHLY_REPO_VERSION AS with-docker-compose
IMPORT github.com/earthly/earthly/tests/with-docker-kind:$EARTHLY_REPO_VERSION AS with-docker-kind
IMPORT github.com/earthly/earthly/tests/dind-auto-install:$EARTHLY_REPO_VERSION AS dind-auto-install

# DOCKERHUB_USER is the organization name in docker hub (default: earthly)
ARG --global DOCKERHUB_USER
Expand Down Expand Up @@ -76,6 +77,7 @@ test:
# DIND_IMAGE is the full docker image name & tag to run the tests against. The image must exist in the remote docker registry
ARG DIND_IMAGE
BUILD --pass-args with-docker+all --DIND_IMAGE=$DIND_IMAGE
BUILD --pass-args dind-auto-install+test --BASE_IMAGE=$DIND_IMAGE

# build-and-test is used to build a new image and run tests against it after pushing it to registry
# this can be used on either the final image or a test image (which is differentiated by the repo and tag that is used)
Expand Down

0 comments on commit 506a2ce

Please sign in to comment.