This commit is contained in:
parent
26b7e5c3ff
commit
596ecffb83
1 changed files with 17 additions and 6 deletions
23
.drone.yml
23
.drone.yml
|
|
@ -57,13 +57,24 @@ steps:
|
||||||
echo -n $REGISTRY_PASS \
|
echo -n $REGISTRY_PASS \
|
||||||
| docker login -u $REGISTRY_USER --password-stdin $REGISTRY_HOST
|
| docker login -u $REGISTRY_USER --password-stdin $REGISTRY_HOST
|
||||||
- docker buildx create --name multiarch --use
|
- docker buildx create --name multiarch --use
|
||||||
|
# - |-
|
||||||
|
# docker buildx build \
|
||||||
|
# --allow network.host \
|
||||||
|
# --network host \
|
||||||
|
# --platform linux/amd64,linux/arm64 \
|
||||||
|
# --output type=image,push=true \
|
||||||
|
# --progress tty \
|
||||||
|
# --build-arg TAG=$DRONE_TAG \
|
||||||
|
# -t $REGISTRY_HOST/$IMAGE:$DRONE_TAG \
|
||||||
|
# -t $REGISTRY_HOST/$IMAGE:latest \
|
||||||
|
# .
|
||||||
- |-
|
- |-
|
||||||
docker buildx build \
|
docker buildx build \
|
||||||
|
--allow network.host \
|
||||||
|
--network host \
|
||||||
--platform linux/amd64,linux/arm64 \
|
--platform linux/amd64,linux/arm64 \
|
||||||
--output=type=image,push=true \
|
--output type=image,push=true \
|
||||||
--progress tty \
|
--progress tty \
|
||||||
--build-arg TAG=$DRONE_TAG \
|
|
||||||
-t $REGISTRY_HOST/$IMAGE:$DRONE_TAG \
|
|
||||||
-t $REGISTRY_HOST/$IMAGE:latest \
|
-t $REGISTRY_HOST/$IMAGE:latest \
|
||||||
.
|
.
|
||||||
volumes:
|
volumes:
|
||||||
|
|
@ -77,6 +88,6 @@ steps:
|
||||||
REGISTRY_PASS:
|
REGISTRY_PASS:
|
||||||
from_secret: registry_password
|
from_secret: registry_password
|
||||||
|
|
||||||
trigger:
|
#trigger:
|
||||||
event:
|
# event:
|
||||||
- tag
|
# - tag
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue