-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yml
27 lines (26 loc) · 1.03 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: 'Deploy Deckhouse Module'
description: 'Deploy Deckhouse module'
inputs:
module_source:
description: 'Registry repository address for of the module, e.g., registry.example.com/module-source'
required: true
module_name:
description: 'Name of the module, e.g., my-module'
required: true
module_tag:
description: 'The version of the module to deploy to release channel, e.g., v1.21.1'
required: true
release_channel:
description: 'Name of the release channel. Must be one of alpha, beta, early-access, stable, rock-solid'
required: true
runs:
using: "composite"
steps:
- name: Deploy ${{ inputs.module_name }} module to ${{ inputs.release_channel }} release channel
shell: bash
run: |
REPO="${{ inputs.module_source }}/${{ inputs.module_name }}/release"
IMAGE_SRC="${REPO}:${{ inputs.module_tag }}"
IMAGE_DST="${REPO}:${{ inputs.release_channel }}"
echo "✨ Deploy : Pushing ${IMAGE_SRC} to ${IMAGE_DST}"
crane copy "${IMAGE_SRC}" "${IMAGE_DST}"