This commit is contained in:
parent
4600e81d6b
commit
26b7e5c3ff
1 changed files with 4 additions and 14 deletions
18
.drone.yml
18
.drone.yml
|
|
@ -26,8 +26,6 @@ volumes:
|
|||
steps:
|
||||
- name: build
|
||||
image: docker:latest
|
||||
settings:
|
||||
ipv6: true
|
||||
commands:
|
||||
- |-
|
||||
case $(uname -a) in
|
||||
|
|
@ -59,21 +57,13 @@ steps:
|
|||
echo -n $REGISTRY_PASS \
|
||||
| docker login -u $REGISTRY_USER --password-stdin $REGISTRY_HOST
|
||||
- docker buildx create --name multiarch --use
|
||||
#- |-
|
||||
# docker buildx build \
|
||||
# --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 \
|
||||
--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 \
|
||||
.
|
||||
volumes:
|
||||
|
|
@ -87,6 +77,6 @@ steps:
|
|||
REGISTRY_PASS:
|
||||
from_secret: registry_password
|
||||
|
||||
#trigger:
|
||||
# event:
|
||||
# - tag
|
||||
trigger:
|
||||
event:
|
||||
- tag
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue