fix docker build
This commit is contained in:
parent
5195f1f5d8
commit
441e7d2af1
1 changed files with 3 additions and 2 deletions
|
@ -24,9 +24,9 @@ VERSION=$(cat ../package.json | grep version | head -1 | awk -F: '{ print $2 }'
|
||||||
echo "Building version $VERSION"
|
echo "Building version $VERSION"
|
||||||
|
|
||||||
# Allow host networking for buildx
|
# Allow host networking for buildx
|
||||||
docker buildx create --append --use --name picsur --driver-opt network=host
|
docker buildx create --append --name picsur --driver-opt network=host
|
||||||
|
|
||||||
docker buildx build \
|
docker build \
|
||||||
--push \
|
--push \
|
||||||
--network host \
|
--network host \
|
||||||
-t "$PACKAGE_URL-stage1:$VERSION" \
|
-t "$PACKAGE_URL-stage1:$VERSION" \
|
||||||
|
@ -40,6 +40,7 @@ if [ $? -ne 0 ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
docker buildx build \
|
docker buildx build \
|
||||||
|
--builder picsur \
|
||||||
--platform linux/amd64,linux/arm64 \
|
--platform linux/amd64,linux/arm64 \
|
||||||
--push \
|
--push \
|
||||||
--network host \
|
--network host \
|
||||||
|
|
Loading…
Reference in a new issue