ale
4f49c5dc8a
Some checks failed
continuous-integration/drone/push Build is failing
Signed-off-by: ale <ale@manalejandro.com>
69 lines
1.3 KiB
YAML
69 lines
1.3 KiB
YAML
kind: pipeline
|
|
name: build-linux-arm64-amd64
|
|
type: docker
|
|
|
|
platform:
|
|
os: linux
|
|
arch: arm64
|
|
|
|
clone:
|
|
disable: true
|
|
|
|
steps:
|
|
- name: build-arm64
|
|
image: docker:dind
|
|
privileged: true
|
|
environment:
|
|
USER:
|
|
from_secret: user
|
|
PASS:
|
|
from_secret: pass
|
|
REGISTRY:
|
|
from_secret: registry
|
|
volumes:
|
|
- name: etcdocker
|
|
path: /etc/docker
|
|
- name: dockersock
|
|
path: /var/run/docker.sock
|
|
commands:
|
|
- docker login -u $USER -p $PASS $REGISTRY
|
|
- docker buildx build --platform arm64 -t $REGISTRY/monit .
|
|
- docker push $REGISTRY/monit
|
|
when:
|
|
event:
|
|
- push
|
|
- tag
|
|
|
|
- name: build-amd64
|
|
image: docker:dind
|
|
privileged: true
|
|
environment:
|
|
USER:
|
|
from_secret: user
|
|
PASS:
|
|
from_secret: pass
|
|
REGISTRY:
|
|
from_secret: registry
|
|
volumes:
|
|
- name: etcdocker
|
|
path: /etc/docker
|
|
- name: dockersock
|
|
path: /var/run/docker.sock
|
|
commands:
|
|
- docker login -u $USER -p $PASS $REGISTRY
|
|
- docker run --rm --privileged $REGISTRY/qemu-user-static --reset -p yes
|
|
- docker buildx build --platform amd64 -t $REGISTRY/monit .
|
|
- docker push $REGISTRY/monit
|
|
when:
|
|
event:
|
|
- push
|
|
- tag
|
|
|
|
volumes:
|
|
- name: dockersock
|
|
host:
|
|
path: /var/run/docker.sock
|
|
- name: etcdocker
|
|
host:
|
|
path: /etc/docker
|