This commit is contained in:
parent
b32608abb3
commit
26a1c6226c
1 changed files with 26 additions and 21 deletions
45
.drone.yml
45
.drone.yml
|
|
@ -26,35 +26,40 @@ steps:
|
|||
export ARCH="unknown"
|
||||
;;
|
||||
esac
|
||||
- 'export BUILDX_URL=`wget -q -O - https://api.github.com/repos/docker/buildx/releases/latest | grep "browser_download_url.*linux-$ARCH" | cut -d: -f2,3 | tr -d \" | tr -d \ `'
|
||||
- >-
|
||||
export BUILDX_URL=$(
|
||||
wget -q -O - https://api.github.com/repos/docker/buildx/releases/latest
|
||||
| grep "browser_download_url.*linux-$ARCH"
|
||||
| cut -d: -f2,3
|
||||
| tr -d \"
|
||||
| tr -d \
|
||||
)
|
||||
- mkdir -p ~/.docker/cli-plugins
|
||||
- wget -O ~/.docker/cli-plugins/docker-buildx $BUILDX_URL
|
||||
- chmod a+x ~/.docker/cli-plugins/docker-buildx
|
||||
- docker version
|
||||
- docker buildx version
|
||||
- |-
|
||||
echo -n $REGISTRY_PASS \
|
||||
- >-
|
||||
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
|
||||
# --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 \
|
||||
--platform linux/amd64,linux/arm64 \
|
||||
--add-host $REGISTRY_HOST:192.168.128.20 \
|
||||
--output type=image,push=true \
|
||||
--progress tty \
|
||||
-t $REGISTRY_HOST/$IMAGE:latest \
|
||||
- >-
|
||||
docker buildx build
|
||||
--platform linux/amd64,linux/arm64
|
||||
--output type=image,push=true
|
||||
--progress tty
|
||||
-t $REGISTRY_HOST/$IMAGE:latest
|
||||
.
|
||||
- docker push $REGISTRY_HOST/$IMAGE:latest
|
||||
environment:
|
||||
IMAGE: protonmail-bridge
|
||||
REGISTRY_HOST: registry.thegibsonhome.net
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue