Skip to content

Commit

Permalink
additional pipeline to publish manifests
Browse files Browse the repository at this point in the history
  • Loading branch information
ibrokethecloud committed Dec 20, 2023
1 parent 4bd4fc8 commit 90678b2
Showing 1 changed file with 55 additions and 4 deletions.
59 changes: 55 additions & 4 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ steps:
password:
from_secret: docker_password
repo: "rancher/harvester-node-manager"
tag: ${DRONE_BRANCH}-head
tag: "${DRONE_BRANCH}-head-linux-amd64"
username:
from_secret: docker_username
when:
Expand All @@ -43,7 +43,7 @@ steps:
password:
from_secret: docker_password
repo: "rancher/harvester-node-manager"
tag: "${DRONE_TAG}"
tag: "${DRONE_TAG}-linux-amd64"
username:
from_secret: docker_username
when:
Expand Down Expand Up @@ -87,7 +87,7 @@ steps:
password:
from_secret: docker_password
repo: "rancher/harvester-node-manager"
tag: ${DRONE_BRANCH}-head
tag: ${DRONE_BRANCH}-head-linux-arm64
username:
from_secret: docker_username
when:
Expand All @@ -105,7 +105,7 @@ steps:
password:
from_secret: docker_password
repo: "rancher/harvester-node-manager"
tag: "${DRONE_TAG}"
tag: "${DRONE_TAG}-linux-arm64"
username:
from_secret: docker_username
when:
Expand All @@ -121,3 +121,54 @@ volumes:
- name: docker
host:
path: /var/run/docker.sock

---
kind: pipeline
name: manifest

steps:
- name: push-manifest-head
image: plugins/manifest
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
target: rancher/harvester-node-manager:${DRONE_TAG}-head
template: rancher/harvester-node-manager-${DRONE_TAG}-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: rancher/harvester-node-manager:${DRONE_TAG}
template: rancher/harvester-node-manager-${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 90678b2

Please sign in to comment.