From 07629dfc639b5417dac04e70ca91920eb3c11fbb Mon Sep 17 00:00:00 2001 From: Paolo Asperti Date: Sat, 11 Jun 2022 00:19:38 +0200 Subject: [PATCH] multiarch --- .drone.yml | 55 +++++++++++++++++++++++++++++++++++++++++------------- 1 file changed, 42 insertions(+), 13 deletions(-) diff --git a/.drone.yml b/.drone.yml index d9b243b..febe90a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -7,6 +7,16 @@ platform: os: linux steps: + - name: build + image: plugins/docker:linux-amd64 + settings: + dockerfile: Dockerfile + dry_run: true + repo: docker.asperti.com/paspo/ftps + when: + event: + - push + - name: build_and_publish image: plugins/docker:linux-amd64 settings: @@ -22,10 +32,9 @@ steps: - ${DRONE_TAG}-linux-amd64 - ${DRONE_SEMVER_MAJOR}.${DRONE_SEMVER_MINOR}-linux-amd64 - ${DRONE_SEMVER_MAJOR}-linux-amd64 - -trigger: - event: - - tag + when: + event: + - tag --- kind: pipeline @@ -37,6 +46,16 @@ platform: os: linux steps: + - name: build + image: plugins/docker:linux-arm64 + settings: + dockerfile: Dockerfile + dry_run: true + repo: docker.asperti.com/paspo/ftps + when: + event: + - push + - name: build_and_publish image: plugins/docker:linux-arm64 settings: @@ -52,10 +71,11 @@ steps: - ${DRONE_TAG}-linux-arm64 - ${DRONE_SEMVER_MAJOR}.${DRONE_SEMVER_MINOR}-linux-arm64 - ${DRONE_SEMVER_MAJOR}-linux-arm64 + when: + event: + - tag -trigger: - event: - - tag +# no build server available (at the moment) for this arch # --- # kind: pipeline @@ -67,6 +87,16 @@ trigger: # os: linux # steps: +# - name: build +# image: plugins/docker:linux-arm +# settings: +# dockerfile: Dockerfile +# dry_run: true +# repo: docker.asperti.com/paspo/ftps +# when: +# event: +# - push + # - name: build_and_publish # image: plugins/docker:linux-arm # settings: @@ -82,10 +112,9 @@ trigger: # - ${DRONE_TAG}-linux-arm # - ${DRONE_SEMVER_MAJOR}.${DRONE_SEMVER_MINOR}-linux-arm # - ${DRONE_SEMVER_MAJOR}-linux-arm - -# trigger: -# event: -# - tag +# when: +# event: +# - tag --- kind: pipeline @@ -96,8 +125,8 @@ steps: - name: manifest image: plugins/manifest settings: - force_tag: "true" - ignore_missing: "true" + force_tag: true + ignore_missing: true spec: manifest.tmpl username: from_secret: docker_username