Skip to content

Commit

Permalink
manifest publishing
Browse files Browse the repository at this point in the history
add drone pipeline for publishing multi-arch manifests
  • Loading branch information
ibrokethecloud authored and bk201 committed Dec 21, 2023
1 parent a11b3da commit 9bc9083
Showing 1 changed file with 58 additions and 4 deletions.
62 changes: 58 additions & 4 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ steps:
password:
from_secret: docker_password
repo: "rancher/harvester-node-disk-manager"
tag: ${DRONE_BRANCH}-head
tag: ${DRONE_BRANCH}-head-linux-amd64
username:
from_secret: docker_username
when:
Expand All @@ -55,7 +55,7 @@ steps:
password:
from_secret: docker_password
repo: "rancher/harvester-node-disk-manager"
tag: "${DRONE_TAG}"
tag: "${DRONE_TAG}-linux-amd64"
username:
from_secret: docker_username
when:
Expand Down Expand Up @@ -111,7 +111,7 @@ steps:
password:
from_secret: docker_password
repo: "rancher/harvester-node-disk-manager"
tag: ${DRONE_BRANCH}-head
tag: ${DRONE_BRANCH}-head-linux-arm64
username:
from_secret: docker_username
when:
Expand All @@ -129,7 +129,7 @@ steps:
password:
from_secret: docker_password
repo: "rancher/harvester-node-disk-manager"
tag: "${DRONE_TAG}"
tag: "${DRONE_TAG}-linux-arm64"
username:
from_secret: docker_username
when:
Expand All @@ -145,3 +145,57 @@ volumes:
- name: docker
host:
path: /var/run/docker.sock

---
kind: pipeline
name: manifest

env:
IMAGE_NAME: "rancher/harvester-node-disk-manager"

steps:
- name: push-manifest-head
image: plugins/manifest
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
target: "${IMAGE_NAME}:${DRONE_BRANCH}-head"
template: "${IMAGE_NAME}:${DRONE_BRANCH}-head-OS-ARCH"
ignore_missing: true
platforms:
- linux/amd64
- linux/arm64
when:
ref:
include:
- refs/heads/master
- refs/heads/release/v*
event:
- push

- name: push-manifest-tag
image: plugins/manifest
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
target: "${IMAGE_NAME}:${DRONE_TAG}"
template: "${IMAGE_NAME}:${DRONE_TAG}-OS-ARCH"
ignore_missing: true
platforms:
- linux/amd64
- linux/arm64
when:
ref:
include:
- refs/head/master
- refs/tags/*
event:
- tag

depends_on:
- amd64
- arm64

0 comments on commit 9bc9083

Please sign in to comment.