From ab4040aff0f58b5f24fe9d733008f24a398980fa Mon Sep 17 00:00:00 2001 From: Mauro Torrez Date: Mon, 26 Feb 2024 19:04:24 -0300 Subject: [PATCH] arm64 build --- .drone.yml | 43 ++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 40 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index a8507da..26089cc 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,7 +3,7 @@ kind: pipeline name: default steps: - - name: build and publish image + - name: build and publish image amd64 image: plugins/docker settings: repo: eumau/postfix @@ -12,6 +12,21 @@ steps: from_secret: dockerhub_username password: from_secret: dockerhub_password + platform: linux/amd64 + when: + branch: + - master + + - name: build and publish image arm64 + image: plugins/docker + settings: + repo: eumau/postfix + auto_tag: true + username: + from_secret: dockerhub_username + password: + from_secret: dockerhub_password + platform: linux/arm64 when: branch: - master @@ -21,12 +36,21 @@ kind: pipeline name: pull_request steps: - - name: build image only + - name: build image only amd64 image: plugins/docker settings: repo: eumau/postfix auto_tag: true dry_run: true + platform: linux/amd64 + + - name: build image only arm64 + image: plugins/docker + settings: + repo: eumau/postfix + auto_tag: true + dry_run: true + platform: linux/arm64 trigger: event: @@ -37,7 +61,7 @@ kind: pipeline name: tags steps: - - name: docker + - name: docker amd64 image: plugins/docker settings: repo: eumau/postfix @@ -47,6 +71,19 @@ steps: from_secret: dockerhub_password tags: - ${DRONE_TAG} + platform: linux/amd64 + + - name: docker arm64 + image: plugins/docker + settings: + repo: eumau/postfix + username: + from_secret: dockerhub_username + password: + from_secret: dockerhub_password + tags: + - ${DRONE_TAG} + platform: linux/arm64 trigger: event: