build-arm64
Algunas comprobaciones han fallado
continuous-integration/drone/push Build is failing

Este commit está contenido en:
ale
2024-10-08 12:03:24 +02:00
padre 7b1101df72
commit d8f069272d
Se han modificado 2 ficheros con 26 adiciones y 8 borrados

Ver fichero

@@ -1,5 +1,5 @@
kind: pipeline kind: pipeline
name: build-linux-amd64 name: build-linux-arm64-amd64
type: docker type: docker
platform: platform:
@@ -10,7 +10,30 @@ clone:
disable: true disable: true
steps: steps:
- name: build - 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
commands:
- docker login -u $USER -p $PASS $REGISTRY
- git clone --recursive https://git.manalejandro.com/ale/libretranslate-api .
- cd LibreTranslate && docker buildx build --build-arg with_models=true --platform arm64 -t $REGISTRY/libretranslate-api:arm64 -f ./docker/Dockerfile .
- docker push $REGISTRY/libretranslate-api:arm64
when:
event:
- push
- tag
- name: build-amd64
image: docker:dind image: docker:dind
privileged: true privileged: true
environment: environment:
@@ -21,8 +44,6 @@ steps:
REGISTRY: REGISTRY:
from_secret: registry from_secret: registry
volumes: volumes:
- name: dockersock
path: /var/run/docker.sock
- name: etcdocker - name: etcdocker
path: /etc/docker path: /etc/docker
commands: commands:
@@ -37,9 +58,6 @@ steps:
- tag - tag
volumes: volumes:
- name: dockersock
host:
path: /var/run/docker.sock
- name: etcdocker - name: etcdocker
host: host:
path: /etc/docker path: /etc/docker