diff --git a/.drone.yml b/.drone.yml index 42181f3..b113e6b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -43,21 +43,14 @@ steps: echo -n $REGISTRY_PASS\ | docker login -u $REGISTRY_USER --password-stdin $REGISTRY_HOST - 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\ + --no-cache\ --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\ . environment: @@ -68,6 +61,6 @@ steps: REGISTRY_PASS: from_secret: registry_password -#trigger: -# event: -# - tag +trigger: + event: + - tag