multiarch
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
Paolo Asperti 2022-06-10 23:43:16 +02:00
parent 342593fb8b
commit 4ea2ba1fb8
Signed by: paspo
GPG Key ID: 06D46905D19D5182
2 changed files with 134 additions and 5 deletions

View File

@ -1,11 +1,16 @@
kind: pipeline kind: pipeline
type: docker type: docker
name: default name: linux-amd64
platform:
arch: amd64
os: linux
steps: steps:
- name: build_and_publish - name: build_and_publish
image: plugins/docker:linux-amd64 image: plugins/docker:linux-amd64
settings: settings:
dockerfile: Dockerfile
force_tag: true force_tag: true
password: password:
from_secret: docker_password from_secret: docker_password
@ -14,11 +19,104 @@ steps:
username: username:
from_secret: docker_username from_secret: docker_username
tags: tags:
- latest - ${DRONE_TAG}-linux-amd64
- ${DRONE_TAG} - ${DRONE_SEMVER_MAJOR}.${DRONE_SEMVER_MINOR}-linux-amd64
- ${DRONE_SEMVER_MAJOR}.${DRONE_SEMVER_MINOR} - ${DRONE_SEMVER_MAJOR}-linux-amd64
- ${DRONE_SEMVER_MAJOR}
trigger: trigger:
event: event:
- tag - tag
- push
---
kind: pipeline
type: docker
name: linux-arm64
platform:
arch: arm64
os: linux
steps:
- name: build_and_publish
image: plugins/docker:linux-arm64
settings:
dockerfile: Dockerfile
force_tag: true
password:
from_secret: docker_password
registry: docker.asperti.com
repo: docker.asperti.com/paspo/ftps
username:
from_secret: docker_username
tags:
- ${DRONE_TAG}-linux-arm64
- ${DRONE_SEMVER_MAJOR}.${DRONE_SEMVER_MINOR}-linux-arm64
- ${DRONE_SEMVER_MAJOR}-linux-arm64
trigger:
event:
- tag
---
kind: pipeline
type: docker
name: linux-arm
platform:
arch: arm
os: linux
steps:
- name: build_and_publish
image: plugins/docker:linux-arm
settings:
dockerfile: Dockerfile
force_tag: true
password:
from_secret: docker_password
registry: docker.asperti.com
repo: docker.asperti.com/paspo/ftps
username:
from_secret: docker_username
tags:
- ${DRONE_TAG}-linux-arm
- ${DRONE_SEMVER_MAJOR}.${DRONE_SEMVER_MINOR}-linux-arm
- ${DRONE_SEMVER_MAJOR}-linux-arm
trigger:
event:
- tag
- push
---
kind: pipeline
type: docker
name: manifest
steps:
- name: manifest
image: plugins/manifest
settings:
auto_tag: "true"
ignore_missing: "true"
spec: manifest.tmpl
username:
from_secret: docker_username
password:
from_secret: docker_password
tags:
- latest
- ${DRONE_TAG}
- ${DRONE_SEMVER_MAJOR}.${DRONE_SEMVER_MINOR}
- ${DRONE_SEMVER_MAJOR}
trigger:
event:
- push
- tag
depends_on:
- linux-amd64
# - linux-arm64
- linux-arm

31
manifest.tmpl Normal file
View File

@ -0,0 +1,31 @@
image: docker.asperti.com/paspo/ftps:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}}
{{#if build.tags}}
tags:
{{#each build.tags}}
- {{this}}
{{/each}}
{{/if}}
manifests:
-
image: docker.asperti.com/paspo/ftps:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-amd64
platform:
architecture: amd64
os: linux
-
image: docker.asperti.com/paspo/ftps:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm64
platform:
variant: v8
architecture: arm64
os: linux
-
image: docker.asperti.com/paspo/ftps:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm
platform:
variant: v7
architecture: arm
os: linux
-
image: docker.asperti.com/paspo/ftps:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm
platform:
variant: v6
architecture: arm
os: linux