2
0
Fork 0
mirror of https://git.asonix.dog/asonix/pict-rs synced 2024-12-22 19:31:35 +00:00

Add manifest step

This commit is contained in:
Aode (lion) 2021-12-04 10:53:53 -06:00
parent cd66a1478a
commit f8e3bc2a4a
2 changed files with 59 additions and 1 deletions

View file

@ -213,7 +213,7 @@ steps:
repo: asonix/pictrs repo: asonix/pictrs
dockerfile: docker/drone/Dockerfile dockerfile: docker/drone/Dockerfile
auto_tag: true auto_tag: true
auto_tag_suffix: arv64v8 auto_tag_suffix: arm64v8
build_args: build_args:
- REPO_ARCH=arm64v8 - REPO_ARCH=arm64v8
- TARGET_ARCH=aarch64-unknown-linux-musl - TARGET_ARCH=aarch64-unknown-linux-musl
@ -300,3 +300,36 @@ steps:
trigger: trigger:
event: event:
- tag - tag
---
kind: pipeline
type: docker
name: build-arm32v7
platform:
arch: amd64
clone:
disable: true
steps:
- name: manifest
image: plugins/manifest
settings:
username: asonix
password:
from_secret: dockerhub_token
auto_tag: true
ignore_missing: true
spec: docker/drone/manifest.tmpl
depends_on:
- build-amd64
- build-arm64v8
- build-arm32v7
trigger:
event:
- tag

View file

@ -0,0 +1,25 @@
image: asonix/pictrs:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}}
{{#if build.tags}}
tags:
{{#each build.tags}}
- {{this}}
{{/each}}
{{/if}}
manifests:
-
image: asonix/pictrs:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}}-amd64
platform:
architecture: amd64
os: linux
-
image: asonix/pictrs:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}}-arm64v8
platform:
architecture: arm64
os: linux
variant: v8
-
image: asonix/pictrs:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}latest{{/if}}-arm32v7
platform:
architecture: arm
os: linux
variant: v7