From a4685c97e8adcb2cc66a5d127a43f5453f5392f6 Mon Sep 17 00:00:00 2001 From: Patrick Gniza Date: Mon, 3 Nov 2025 20:38:20 +0100 Subject: [PATCH] update drone.yml --- drone.yml | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/drone.yml b/drone.yml index 591ad58..5f4b94d 100644 --- a/drone.yml +++ b/drone.yml @@ -11,12 +11,13 @@ steps: from_secret: harbor_user HARBOR_PASS: from_secret: harbor_pass + REGISTRY_URL: + from_secret: REGISTRY_URL commands: - - docker login harbor.example.com -u "$HARBOR_USER" -p "$HARBOR_PASS" - docker buildx create --use - docker buildx build \ --platform linux/amd64 \ - -t harbor.example.com/myproj/portainer-agent-tailscale:amd64 \ + -t ${REGISTRY_URL}/portainer-agent-tailscale:amd64 \ --push . - name: build-arm64 @@ -28,11 +29,10 @@ steps: HARBOR_PASS: from_secret: harbor_pass commands: - - docker login harbor.example.com -u "$HARBOR_USER" -p "$HARBOR_PASS" - docker buildx create --use - docker buildx build \ --platform linux/arm64 \ - -t harbor.example.com/myproj/portainer-agent-tailscale:arm64 \ + -t ${REGISTRY_URL}/portainer-agent-tailscale:arm64 \ --push . - name: create-manifest @@ -43,9 +43,7 @@ steps: HARBOR_PASS: from_secret: harbor_pass commands: - - docker login harbor.example.com -u "$HARBOR_USER" -p "$HARBOR_PASS" - - docker manifest create harbor.example.com/myproj/portainer-agent-tailscale:latest \ - --amend harbor.example.com/myproj/portainer-agent-tailscale:amd64 \ - --amend harbor.example.com/myproj/portainer-agent-tailscale:arm64 - - docker manifest push harbor.example.com/myproj/portainer-agent-tailscale:latest - + - docker manifest create ${REGISTRY_URL}/portainer-agent-tailscale:latest \ + --amend ${REGISTRY_URL}/portainer-agent-tailscale:amd64 \ + --amend ${REGISTRY_URL}/portainer-agent-tailscale:arm64 + - docker manifest push ${REGISTRY_URL}/portainer-agent-tailscale:latest