Skip to content

ci: use new master(s) workflows #1

ci: use new master(s) workflows

ci: use new master(s) workflows #1

Workflow file for this run

# This workflow is a reusable one called by other workflows
name: (template) CLI/UI template
#ffo
on:
workflow_call:
# Variables to set when calling this reusable workflow
inputs:
backup_restore_version:
type: string
test_type:
required: true
type: string
ca_type:
type: string
cert-manager_version:
type: string
cluster_name:
required: true
type: string
cypress_tags:
type: string
destroy_runner:
type: boolean
elemental_ui_version:
type: string
iso_boot:
type: boolean
k8s_version_to_provision:
required: true
type: string
operator_repo:
type: string
proxy:
type: string
public_dns:
required: true
type: string
qase_run_id:
type: string
runner_label:
required: true
type: string
rancher_version:
type: string
test_description:
required: true
type: string
test_type:
required: true
type: string
ui_account:
type: string
upgrade_image:
type: string
upgrade_os_channel:
type: string
upstream_cluster_version:
type: string
# Secrets to set when calling this reusable workflow
secrets:
qase_api_token:
jobs:
cli:
if: ${{ inputs.test_type == 'cli' }}
uses: ./.github/workflows/master_cli.yaml
secrets:
qase_api_token: ${{ secrets.qase_api_token }}
with:
ca_type: ${{ inputs.ca_type }}
cert-manager_version: ${{ inputs.cert-manager_version }}
cluster_name: ${{ inputs.cluster_name }}
iso_boot: ${{ inputs.iso_boot }}
k8s_version_to_provision: ${{ inputs.k8s_version_to_provision }}
operator_repo: ${{ inputs.operator_repo }}
public_dns: ${{ needs.create-runner.outputs.public_dns }}
qase_run_id: ${{ needs.pre-qase.outputs.qase_run_id }}
rancher_version: ${{ inputs.rancher_version }}
runner_label: ${{ needs.create-runner.outputs.runner_label }}
test_description: ${{ inputs.test_description }}
upgrade_image: ${{ inputs.upgrade_image }}
upgrade_os_channel: ${{ inputs.os_channel }}
upstream_cluster_version: ${{ inputs.upstream_cluster_version }}
ui:
if: ${{ inputs.test_type == 'ui' }}
uses: ./.github/workflows/master_ui.yaml
secrets:
qase_api_token: ${{ secrets.qase_api_token }}
with:
ca_type: ${{ inputs.ca_type }}
cert-manager_version: ${{ inputs.cert-manager_version }}
cluster_name: ${{ inputs.cluster_name }}
cypress_tags: ${{ inputs.cypress_tags }}
elemental_ui_version: ${{ inputs.elemental_ui_version }}
iso_boot: ${{ inputs.iso_boot }}
k8s_version_to_provision: ${{ inputs.k8s_version_to_provision }}
operator_repo: ${{ inputs.operator_repo }}
proxy: ${{ inputs.proxy }}
public_dns: ${{ needs.create-runner.outputs.public_dns }}
qase_run_id: ${{ needs.pre-qase.outputs.qase_run_id }}
rancher_version: ${{ inputs.rancher_version }}
runner_label: ${{ needs.create-runner.outputs.runner_label }}
test_description: ${{ inputs.test_description }}
ui_account: ${{ inputs.ui_account }}
upgrade_image: ${{ inputs.upgrade_image }}
upgrade_os_channel: ${{ inputs.os_channel }}
upstream_cluster_version: ${{ inputs.upstream_cluster_version }}