Files
portainer-agent-tailscale/drone.yml
Patrick Gniza 5c15d27900
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone Build is failing
Update drone repo login data
2025-11-05 20:01:20 +01:00

82 lines
2.3 KiB
YAML

kind: pipeline
type: docker
name: build-and-push
steps:
- name: build-amd64
image: docker:26
privileged: true
environment:
REGISTRY_URL:
from_secret: REGISTRY_URL
DOCKER_USER:
from_secret: DOCKER_USER
DOCKER_PASS:
from_secret: DOCKER_PASS
volumes:
- name: docker_sock
path: /var/run/docker.sock
commands:
- |
echo "Building amd64 image..."
docker login $REGISTRY_URL -u "$DOCKER_USER" -p "$DOCKER_PASS"
docker buildx create --use
docker buildx build \
--platform linux/amd64 \
--output=type=registry \
--provenance=false \
-t registry.buchhorster.de/portainer-agent-tailscale:amd64 \
--push .
- name: build-arm64
image: docker:26
privileged: true
environment:
REGISTRY_URL:
from_secret: REGISTRY_URL
DOCKER_USER:
from_secret: DOCKER_USER
DOCKER_PASS:
from_secret: DOCKER_PASS
volumes:
- name: docker_sock
path: /var/run/docker.sock
commands:
- |
echo "Building arm64 image..."
docker login $REGISTRY_URL -u "$DOCKER_USER" -p "$DOCKER_PASS"
docker buildx create --use
docker buildx build \
--platform linux/arm64 \
--output=type=registry \
--provenance=false \
-t registry.buchhorster.de/portainer-agent-tailscale:arm64 \
--push .
- name: create-manifest
image: docker:26
privileged: true
environment:
REGISTRY_URL:
from_secret: REGISTRY_URL
DOCKER_USER:
from_secret: DOCKER_USER
DOCKER_PASS:
from_secret: DOCKER_PASS
volumes:
- name: docker_sock
path: /var/run/docker.sock
commands:
- |
echo "Creating multi-arch manifest..."
docker login $REGISTRY_URL -u "$DOCKER_USER" -p "$DOCKER_PASS"
docker manifest create registry.buchhorster.de/portainer-agent-tailscale:latest \
--amend registry.buchhorster.de/portainer-agent-tailscale:amd64 \
--amend registry.buchhorster.de/portainer-agent-tailscale:arm64
docker manifest push registry.buchhorster.de/portainer-agent-tailscale:latest
volumes:
- name: docker_sock
host:
path: /var/run/docker.sock