ajout --network=host dans le docker build
This commit is contained in:
parent
06daf72cd6
commit
394d3024d7
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ build-push-docker-image-job:
|
|||
script:
|
||||
- echo "Building..." # MAKE SURE NO SPACE ON EITHER SIDE OF = IN THE FOLLOWING LINE
|
||||
- export CONTAINER_FULL_IMAGE_NAME_WITH_TAG=$IMAGE_NAME_WITH_REGISTRY_PREFIX/my-build-image:$COMMIT_HASH
|
||||
- docker build -f ./Dockerfile --pull -t built-image-name .
|
||||
- docker build --network=host -f ./Dockerfile --pull -t built-image-name .
|
||||
- docker tag built-image-name "$CONTAINER_FULL_IMAGE_NAME_WITH_TAG"
|
||||
- docker push "$CONTAINER_FULL_IMAGE_NAME_WITH_TAG"
|
||||
- echo "$CONTAINER_FULL_IMAGE_NAME_WITH_TAG"
|
||||
|
|
Loading…
Reference in a new issue