Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

manifest publishing #69

Merged
merged 1 commit into from
Dec 21, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading