This commit is contained in:
parent
bd3b7d6451
commit
0e5464f5ee
1 changed files with 8 additions and 5 deletions
13
.drone.yml
13
.drone.yml
|
|
@ -8,7 +8,7 @@ environment:
|
||||||
|
|
||||||
platform:
|
platform:
|
||||||
os: linux
|
os: linux
|
||||||
arch: amd64
|
arch: arm64
|
||||||
|
|
||||||
services:
|
services:
|
||||||
- name: dind
|
- name: dind
|
||||||
|
|
@ -31,6 +31,10 @@ steps:
|
||||||
case $(uname -a) in
|
case $(uname -a) in
|
||||||
*x86_64*)
|
*x86_64*)
|
||||||
export ARCH="amd64"
|
export ARCH="amd64"
|
||||||
|
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
|
||||||
|
;;
|
||||||
|
*aarch64*)
|
||||||
|
export ARCH="arm64"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
export ARCH="unknown"
|
export ARCH="unknown"
|
||||||
|
|
@ -49,7 +53,6 @@ steps:
|
||||||
- chmod a+x ~/.docker/cli-plugins/docker-buildx
|
- chmod a+x ~/.docker/cli-plugins/docker-buildx
|
||||||
- docker version
|
- docker version
|
||||||
- docker buildx version
|
- docker buildx version
|
||||||
- docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
|
|
||||||
- |-
|
- |-
|
||||||
echo -n $REGISTRY_PASS \
|
echo -n $REGISTRY_PASS \
|
||||||
| docker login -u $REGISTRY_USER --password-stdin $REGISTRY_HOST
|
| docker login -u $REGISTRY_USER --password-stdin $REGISTRY_HOST
|
||||||
|
|
@ -74,6 +77,6 @@ steps:
|
||||||
REGISTRY_PASS:
|
REGISTRY_PASS:
|
||||||
from_secret: registry_password
|
from_secret: registry_password
|
||||||
|
|
||||||
trigger:
|
#trigger:
|
||||||
event:
|
# event:
|
||||||
- tag
|
# - tag
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue