From 596ecffb83e0332d56720b873eecc70ae9c7b938 Mon Sep 17 00:00:00 2001 From: Michael Gibson Date: Mon, 25 Jan 2021 20:21:40 -0600 Subject: [PATCH] CI/CD/buildx testing. --- .drone.yml | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/.drone.yml b/.drone.yml index cf155fa..4bd61d9 100644 --- a/.drone.yml +++ b/.drone.yml @@ -57,13 +57,24 @@ steps: echo -n $REGISTRY_PASS \ | docker login -u $REGISTRY_USER --password-stdin $REGISTRY_HOST - 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 \ + --allow network.host \ + --network host \ --platform linux/amd64,linux/arm64 \ - --output=type=image,push=true \ + --output type=image,push=true \ --progress tty \ - --build-arg TAG=$DRONE_TAG \ - -t $REGISTRY_HOST/$IMAGE:$DRONE_TAG \ -t $REGISTRY_HOST/$IMAGE:latest \ . volumes: @@ -77,6 +88,6 @@ steps: REGISTRY_PASS: from_secret: registry_password -trigger: - event: - - tag +#trigger: +# event: +# - tag