Skip to content

Commit

Permalink
add --target to run tests locally
Browse files Browse the repository at this point in the history
Signed-off-by: Taylor Silva <[email protected]>
  • Loading branch information
taylorsilva committed Mar 16, 2021
1 parent 32a3941 commit 0269f2f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,8 @@ will stop the build.
Run the tests with the following commands for both `alpine` and `ubuntu` images:

```sh
docker build -t semver-resource -f dockerfiles/alpine/Dockerfile .
docker build -t semver-resource -f dockerfiles/ubuntu/Dockerfile .
docker build -t semver-resource --target tests -f dockerfiles/alpine/Dockerfile .
docker build -t semver-resource --target tests -f dockerfiles/ubuntu/Dockerfile .
```

#### Integration tests
Expand All @@ -265,13 +265,13 @@ You will need:
Run the tests with the following command, replacing each `build-arg` value with your own values:

```sh
docker build . -t semver-resource -f dockerfiles/alpine/Dockerfile \
docker build . -t semver-resource --target tests -f dockerfiles/alpine/Dockerfile \
--build-arg SEMVER_TESTING_ACCESS_KEY_ID="some-key" \
--build-arg SEMVER_TESTING_SECRET_ACCESS_KEY="some-secret" \
--build-arg SEMVER_TESTING_BUCKET="some-bucket" \
--build-arg SEMVER_TESTING_REGION="some-region"
docker build . -t semver-resource -f dockerfiles/ubuntu/Dockerfile \
docker build . -t semver-resource --target tests -f dockerfiles/ubuntu/Dockerfile \
--build-arg SEMVER_TESTING_ACCESS_KEY_ID="some-key" \
--build-arg SEMVER_TESTING_SECRET_ACCESS_KEY="some-secret" \
--build-arg SEMVER_TESTING_BUCKET="some-bucket" \
Expand Down

0 comments on commit 0269f2f

Please sign in to comment.