Commit de16a36 1 parent 2adf6b9 commit de16a36 Copy full SHA for de16a36
File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -228,8 +228,8 @@ will stop the build.
228
228
Run the tests with the following commands for both `alpine` and `ubuntu` images :
229
229
230
230
` ` ` 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 .
233
233
` ` `
234
234
235
235
# ### Integration tests
@@ -241,15 +241,15 @@ integration will run.
241
241
Run the tests with the following command :
242
242
243
243
` ` ` sh
244
- docker build . -t s3-resource -f dockerfiles/alpine/Dockerfile \
244
+ docker build . -t s3-resource --target tests - f dockerfiles/alpine/Dockerfile \
245
245
--build-arg S3_TESTING_ACCESS_KEY_ID="access-key" \
246
246
--build-arg S3_TESTING_SECRET_ACCESS_KEY="some-secret" \
247
247
--build-arg S3_TESTING_BUCKET="bucket-non-versioned" \
248
248
--build-arg S3_VERSIONED_TESTING_BUCKET="bucket-versioned" \
249
249
--build-arg S3_TESTING_REGION="us-east-1" \
250
250
--build-arg S3_ENDPOINT="https://s3.amazonaws.com"
251
251
252
- docker build . -t s3-resource -f dockerfiles/ubuntu/Dockerfile \
252
+ docker build . -t s3-resource --target tests - f dockerfiles/ubuntu/Dockerfile \
253
253
--build-arg S3_TESTING_ACCESS_KEY_ID="access-key" \
254
254
--build-arg S3_TESTING_SECRET_ACCESS_KEY="some-secret" \
255
255
--build-arg S3_TESTING_BUCKET="bucket-non-versioned" \
You can’t perform that action at this time.
0 commit comments