This commit is contained in:
18
drone.yml
18
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
|
||||
|
||||
Reference in New Issue
Block a user