This commit is contained in:
parent
7b1101df72
commit
d8f069272d
32
.drone.yml
32
.drone.yml
@ -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
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit 6b4044aee32e209e1580d3e2d14da2c8488b02f4
|
Subproject commit e112461632c6014b7bf7f8e3809116e352021be4
|
Loading…
Reference in New Issue
Block a user