From 5f2ef712cc6c7b976c566f842c595c2cb7076093 Mon Sep 17 00:00:00 2001 From: Gyorgy Berenyi Date: Wed, 5 Mar 2025 11:14:06 +0000 Subject: [PATCH] Add .drone.yml --- .drone.yml | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..fc5ffd0 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,47 @@ +kind: pipeline +type: kubernetes +name: default + +node_selector: + physical-node: dev2 + +trigger: + branch: + - main + event: + - push +workspace: + path: /drone/src + +steps: + - name: build multiarch from dev + image: docker.io/owncloudci/drone-docker-buildx:4 + privileged: true + settings: + cache-from: [ "registry.dev.format.hu/local-proxy" ] + registry: registry.dev.format.hu + repo: registry.dev.format.hu/local-proxy + tags: latest + dockerfile: Dockerfile + username: + from_secret: dev-hu-registry-username + password: + from_secret: dev-hu-registry-password + platforms: + - linux/amd64 + - linux/arm64 + + - name: pull image to dockerhub + image: docker.io/owncloudci/drone-docker-buildx:4 + privileged: true + settings: + cache-from: [ "safebox/local-proxy" ] + repo: safebox/local-proxy + tags: latest + username: + from_secret: dockerhub-username + password: + from_secret: dockerhub-password + platforms: + - linux/amd64 + - linux/arm64 \ No newline at end of file