CI/CD testing with IPv6.

This commit is contained in:
michael 2021-01-22 14:52:37 -06:00
parent d3aee1a6db
commit efd9a9cb96

View file

@ -26,6 +26,8 @@ volumes:
steps:
- name: build
image: docker:latest
settings:
ipv6: true
commands:
- |-
case $(uname -a) in
@ -57,17 +59,23 @@ 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=false \
--output=type=image,push=true \
--progress tty \
--build-arg TAG=$DRONE_TAG \
-t $REGISTRY_HOST/$IMAGE:$DRONE_TAG \
-t $REGISTRY_HOST/$IMAGE:latest \
.
- docker push $REGISTRY_HOST/$IMAGE:$DRONE_TAG
- docker push $REGISTRY_HOST/$IMAGE:latest
volumes:
- name: docker_socket
path: /var/run