From 6a66358d4c873bb87beacae4ccfab5d2a8bb1423 Mon Sep 17 00:00:00 2001 From: ale Date: Sun, 20 Jul 2025 21:36:44 +0200 Subject: [PATCH] .drone.yml Signed-off-by: ale --- .drone.yml | 31 ++++++++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index ad06fcb..a656bf6 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,5 +1,5 @@ kind: pipeline -name: code-build-linux-amd64 +name: code-build-linux-arm64-amd64 type: docker platform: @@ -9,8 +9,32 @@ platform: 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 + - git clone https://git.manalejandro.com/ale/fediblock-instance . + - docker buildx build --platform arm64 -t $REGISTRY/fediblock-instance:arm64 . + - docker push $REGISTRY/fediblock-instance:arm64 + when: + event: + - push + - tag + - name: build-amd64 image: docker:dind privileged: true @@ -29,8 +53,9 @@ steps: commands: - docker login -u $USER -p $PASS $REGISTRY - docker run --rm --privileged $REGISTRY/qemu-user-static --reset -p yes - - git clone --recursive https://git.manalejandro.com/ale/fediblock-instance . - docker buildx build --platform amd64 -t $REGISTRY/fediblock-instance . + - docker tag $REGISTRY/fediblock-instance $REGISTRY/fediblock-instance:amd64 + - docker push $REGISTRY/fediblock-instance:amd64 - docker push $REGISTRY/fediblock-instance when: event: