Skip to content

Deploy v5.2.3-dev to alpha #1195

Deploy v5.2.3-dev to alpha

Deploy v5.2.3-dev to alpha #1195

# Copyright (c) 2018-2022 The MobileCoin Foundation
#
# MobileCoin Core projects - Dispatch (manual) Job - Deploy core apps to the development namespace.
name: (Manual) Deploy to Dev Namespace
run-name: Deploy ${{ inputs.version }} to ${{ inputs.namespace }}
on:
workflow_dispatch:
inputs:
namespace:
description: "Target Namespace"
type: string
required: true
version:
description: "Chart Version"
type: string
required: true
block_version:
description: "Consensus block_version"
type: string
required: true
default: '3'
bootstrap_version:
description: "Bootstrap Blockchain from selected version"
type: choice
required: true
default: none
options:
- none
- v5.0.3-dev
- v5.1.1-dev
- v5.1.1-dev.alpha.6317
minimum_block:
description: "Minimum block to wait for before testing"
type: choice
required: true
default: "6317"
options:
- "500"
- "5946"
- "6317"
ingest_color:
description: "Fog Ingest blue/green"
type: choice
required: true
default: blue
options:
- blue
- green
chart_repo:
description: "Chart Repo URL"
type: string
required: true
default: https://harbor.mobilecoin.com/chartrepo/mobilecoinfoundation-public
docker_image_org:
description: "Docker Image Org"
type: string
required: true
default: docker.io/mobilecoin
jobs:
list-values:
name: 👾 Environment Info - ${{ inputs.namespace }} - ${{ inputs.version }} 👾
runs-on: mcf-dev-small-x64
steps:
- name: Checkout
uses: actions/checkout@v3
- name: 👾 Print Environment Details 👾
env:
CHART_REPO: ${{ inputs.chart_repo }}
NAMESPACE: ${{ inputs.namespace }}
VERSION: ${{ inputs.version }}
run: |
.internal-ci/util/print_details.sh
bootstrap:
needs:
- list-values
if: inputs.bootstrap_version != 'none'
uses: ./.github/workflows/mobilecoin-workflow-dev-bootstrap.yaml
with:
block_version: '3'
chart_repo: ${{ inputs.chart_repo }}
namespace: ${{ inputs.namespace }}
version: ${{ inputs.bootstrap_version }}
secrets: inherit
deploy:
if: '! failure()'
needs:
- bootstrap
uses: ./.github/workflows/mobilecoin-workflow-dev-deploy.yaml
with:
block_version: ${{ inputs.block_version }}
chart_repo: ${{ inputs.chart_repo }}
docker_image_org: ${{ inputs.docker_image_org }}
ingest_color: ${{ inputs.ingest_color }}
namespace: ${{ inputs.namespace }}
version: ${{ inputs.version }}
minimum_block: ${{ inputs.minimum_block }}
secrets: inherit