This commit is contained in:
parent
49f5f6be59
commit
862d2bf49a
1 changed files with 6 additions and 13 deletions
19
.drone.yml
19
.drone.yml
|
|
@ -43,21 +43,14 @@ 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
|
|
||||||
# --add-host $REGISTRY_HOST:$(nslookup -type=a $REGISTRY_HOST | grep -v ':53' | grep 'Address:' | awk '{print $2}')
|
|
||||||
# --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\
|
||||||
|
--no-cache\
|
||||||
--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\
|
||||||
.
|
.
|
||||||
environment:
|
environment:
|
||||||
|
|
@ -68,6 +61,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