Skip to content

Deploy v5.1.1-dev to mc-jgreat-f-test #1194

Deploy v5.1.1-dev to mc-jgreat-f-test

Deploy v5.1.1-dev to mc-jgreat-f-test #1194

# 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
- v1.1.3-dev
- v3.0.0-dev
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: [self-hosted, Linux, small]
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-v1-1-3-bv0:
needs:
- list-values
if: inputs.bootstrap_version == 'v1.1.3-dev'
uses: ./.github/workflows/mobilecoin-workflow-dev-bootstrap.yaml
with:
block_version: 0
chart_repo: ${{ inputs.chart_repo }}
namespace: ${{ inputs.namespace }}
version: ${{ inputs.bootstrap_version }}
secrets: inherit
bootstrap-v3-0-0-bv2:
needs:
- list-values
if: inputs.bootstrap_version == 'v3.0.0-dev'
uses: ./.github/workflows/mobilecoin-workflow-dev-bootstrap.yaml
with:
block_version: 2
chart_repo: ${{ inputs.chart_repo }}
namespace: ${{ inputs.namespace }}
version: ${{ inputs.bootstrap_version }}
secrets: inherit
deploy:
if: '! failure()'
needs:
- bootstrap-v1-1-3-bv0
- bootstrap-v3-0-0-bv2
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 }}
secrets: inherit