This commit is contained in:
18
drone.yml
18
drone.yml
@@ -11,12 +11,13 @@ steps:
|
|||||||
from_secret: harbor_user
|
from_secret: harbor_user
|
||||||
HARBOR_PASS:
|
HARBOR_PASS:
|
||||||
from_secret: harbor_pass
|
from_secret: harbor_pass
|
||||||
|
REGISTRY_URL:
|
||||||
|
from_secret: REGISTRY_URL
|
||||||
commands:
|
commands:
|
||||||
- docker login harbor.example.com -u "$HARBOR_USER" -p "$HARBOR_PASS"
|
|
||||||
- docker buildx create --use
|
- docker buildx create --use
|
||||||
- docker buildx build \
|
- docker buildx build \
|
||||||
--platform linux/amd64 \
|
--platform linux/amd64 \
|
||||||
-t harbor.example.com/myproj/portainer-agent-tailscale:amd64 \
|
-t ${REGISTRY_URL}/portainer-agent-tailscale:amd64 \
|
||||||
--push .
|
--push .
|
||||||
|
|
||||||
- name: build-arm64
|
- name: build-arm64
|
||||||
@@ -28,11 +29,10 @@ steps:
|
|||||||
HARBOR_PASS:
|
HARBOR_PASS:
|
||||||
from_secret: harbor_pass
|
from_secret: harbor_pass
|
||||||
commands:
|
commands:
|
||||||
- docker login harbor.example.com -u "$HARBOR_USER" -p "$HARBOR_PASS"
|
|
||||||
- docker buildx create --use
|
- docker buildx create --use
|
||||||
- docker buildx build \
|
- docker buildx build \
|
||||||
--platform linux/arm64 \
|
--platform linux/arm64 \
|
||||||
-t harbor.example.com/myproj/portainer-agent-tailscale:arm64 \
|
-t ${REGISTRY_URL}/portainer-agent-tailscale:arm64 \
|
||||||
--push .
|
--push .
|
||||||
|
|
||||||
- name: create-manifest
|
- name: create-manifest
|
||||||
@@ -43,9 +43,7 @@ steps:
|
|||||||
HARBOR_PASS:
|
HARBOR_PASS:
|
||||||
from_secret: harbor_pass
|
from_secret: harbor_pass
|
||||||
commands:
|
commands:
|
||||||
- docker login harbor.example.com -u "$HARBOR_USER" -p "$HARBOR_PASS"
|
- docker manifest create ${REGISTRY_URL}/portainer-agent-tailscale:latest \
|
||||||
- docker manifest create harbor.example.com/myproj/portainer-agent-tailscale:latest \
|
--amend ${REGISTRY_URL}/portainer-agent-tailscale:amd64 \
|
||||||
--amend harbor.example.com/myproj/portainer-agent-tailscale:amd64 \
|
--amend ${REGISTRY_URL}/portainer-agent-tailscale:arm64
|
||||||
--amend harbor.example.com/myproj/portainer-agent-tailscale:arm64
|
- docker manifest push ${REGISTRY_URL}/portainer-agent-tailscale:latest
|
||||||
- docker manifest push harbor.example.com/myproj/portainer-agent-tailscale:latest
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user