Skip to content

Commit de16a36

Browse files
committed
Add --target when running tests locally
Signed-off-by: Taylor Silva <[email protected]>
1 parent 2adf6b9 commit de16a36

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,8 @@ will stop the build.
228228
Run the tests with the following commands for both `alpine` and `ubuntu` images:
229229

230230
```sh
231-
docker build -t s3-resource -f dockerfiles/alpine/Dockerfile .
232-
docker build -t s3-resource -f dockerfiles/ubuntu/Dockerfile .
231+
docker build -t s3-resource --target tests -f dockerfiles/alpine/Dockerfile .
232+
docker build -t s3-resource --target tests -f dockerfiles/ubuntu/Dockerfile .
233233
```
234234

235235
#### Integration tests
@@ -241,15 +241,15 @@ integration will run.
241241
Run the tests with the following command:
242242

243243
```sh
244-
docker build . -t s3-resource -f dockerfiles/alpine/Dockerfile \
244+
docker build . -t s3-resource --target tests -f dockerfiles/alpine/Dockerfile \
245245
--build-arg S3_TESTING_ACCESS_KEY_ID="access-key" \
246246
--build-arg S3_TESTING_SECRET_ACCESS_KEY="some-secret" \
247247
--build-arg S3_TESTING_BUCKET="bucket-non-versioned" \
248248
--build-arg S3_VERSIONED_TESTING_BUCKET="bucket-versioned" \
249249
--build-arg S3_TESTING_REGION="us-east-1" \
250250
--build-arg S3_ENDPOINT="https://s3.amazonaws.com"
251251
252-
docker build . -t s3-resource -f dockerfiles/ubuntu/Dockerfile \
252+
docker build . -t s3-resource --target tests -f dockerfiles/ubuntu/Dockerfile \
253253
--build-arg S3_TESTING_ACCESS_KEY_ID="access-key" \
254254
--build-arg S3_TESTING_SECRET_ACCESS_KEY="some-secret" \
255255
--build-arg S3_TESTING_BUCKET="bucket-non-versioned" \

0 commit comments

Comments
 (0)