update drone.yml
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2025-11-03 20:49:24 +01:00
parent dff88b4540
commit 9e35f4b715

View File

@@ -3,32 +3,30 @@ type: docker
name: build-and-push-multiarch name: build-and-push-multiarch
steps: steps:
- name: setup-builder
- name: check-docker
image: docker:26 image: docker:26
privileged: true privileged: true
volumes: volumes:
- name: docker_sock - name: docker_sock
path: /var/run/docker.sock path: /var/run/docker.sock
commands: commands:
- docker info - docker buildx create --name multiarch --use
- docker buildx inspect --bootstrap
- name: build-amd64 - name: build-amd64
image: docker:26 image: docker:26
privileged: true privileged: true
environment:
HARBOR_USER:
from_secret: harbor_user
HARBOR_PASS:
from_secret: harbor_pass
REGISTRY_URL:
from_secret: REGISTRY_URL
volumes: volumes:
- name: docker_sock - name: docker_sock
path: /var/run/docker.sock path: /var/run/docker.sock
environment:
REGISTRY_URL:
from_secret: REGISTRY_URL
commands: commands:
- docker buildx create --use - |
- docker buildx build \ echo "Building amd64 image..."
docker buildx use multiarch
docker buildx build \
--platform linux/amd64 \ --platform linux/amd64 \
-t ${REGISTRY_URL}/portainer-agent-tailscale:amd64 \ -t ${REGISTRY_URL}/portainer-agent-tailscale:amd64 \
--push . --push .
@@ -36,38 +34,39 @@ steps:
- name: build-arm64 - name: build-arm64
image: docker:26 image: docker:26
privileged: true privileged: true
environment:
HARBOR_USER:
from_secret: harbor_user
HARBOR_PASS:
from_secret: harbor_pass
volumes: volumes:
- name: docker_sock - name: docker_sock
path: /var/run/docker.sock path: /var/run/docker.sock
environment:
REGISTRY_URL:
from_secret: REGISTRY_URL
commands: commands:
- docker buildx create --use - |
- docker buildx build \ echo "Building arm64 image..."
docker buildx use multiarch
docker buildx build \
--platform linux/arm64 \ --platform linux/arm64 \
-t ${REGISTRY_URL}/portainer-agent-tailscale:arm64 \ -t ${REGISTRY_URL}/portainer-agent-tailscale:arm64 \
--push . --push .
- name: create-manifest - name: create-manifest
image: docker:26 image: docker:26
environment: privileged: true
HARBOR_USER:
from_secret: harbor_user
HARBOR_PASS:
from_secret: harbor_pass
volumes: volumes:
- name: docker_sock - name: docker_sock
path: /var/run/docker.sock path: /var/run/docker.sock
environment:
REGISTRY_URL:
from_secret: REGISTRY_URL
commands: commands:
- docker manifest create ${REGISTRY_URL}/portainer-agent-tailscale:latest \ - |
echo "Creating and pushing multi-arch manifest..."
docker manifest create ${REGISTRY_URL}/portainer-agent-tailscale:latest \
--amend ${REGISTRY_URL}/portainer-agent-tailscale:amd64 \ --amend ${REGISTRY_URL}/portainer-agent-tailscale:amd64 \
--amend ${REGISTRY_URL}/portainer-agent-tailscale:arm64 --amend ${REGISTRY_URL}/portainer-agent-tailscale:arm64
- docker manifest push ${REGISTRY_URL}/portainer-agent-tailscale:latest docker manifest push ${REGISTRY_URL}/portainer-agent-tailscale:latest
volumes: volumes:
- name: docker_sock - name: docker_sock
host: host:
path: /var/run/docker.sock path: /var/run/docker.sock