Skip to content

Deploy v1.0.66 to production. #23

Deploy v1.0.66 to production.

Deploy v1.0.66 to production. #23

name: (Manual) Production Deploy
run-name: Deploy ${{ github.ref_name }} to production.
on:
workflow_dispatch: {}
env:
TARGET_CLUSTER: utility-r1-f-k8s
CHART_REPO: https://harbor.mobilecoin.com/chartrepo/mobilecoinofficial-public
jobs:
deploy-mainnet:
runs-on: mco-dev-small-x64
steps:
- name: Create namespace
uses: mobilecoinofficial/gha-k8s-toolbox@v1
with:
action: namespace-create
namespace: block-explorer-mainnet
rancher_cluster: ${{ env.TARGET_CLUSTER }}
rancher_url: ${{ secrets.RANCHER_B_URL }}
rancher_token: ${{ secrets.RANCHER_B_TOKEN }}
- name: Deploy Prod Mainnet
uses: mobilecoinofficial/gha-k8s-toolbox@v1
with:
action: helm-deploy
chart_repo: ${{ env.CHART_REPO }}
chart_name: block-explorer
chart_set: |
--set=ingress.host=block-explorer.mobilecoin.foundation
--set=image.tag=${{ github.ref_name }}-main
chart_version: ${{ github.ref_name }}
release_name: block-explorer
namespace: block-explorer-mainnet
rancher_cluster: ${{ env.TARGET_CLUSTER }}
rancher_url: ${{ secrets.RANCHER_B_URL }}
rancher_token: ${{ secrets.RANCHER_B_TOKEN }}
deploy-testnet:
runs-on: mco-dev-small-x64
steps:
- name: Create namespace
uses: mobilecoinofficial/gha-k8s-toolbox@v1
with:
action: namespace-create
namespace: block-explorer-testnet
rancher_cluster: ${{ env.TARGET_CLUSTER }}
rancher_url: ${{ secrets.RANCHER_B_URL }}
rancher_token: ${{ secrets.RANCHER_B_TOKEN }}
- name: Deploy Prod Testnet
uses: mobilecoinofficial/gha-k8s-toolbox@v1
with:
action: helm-deploy
chart_repo: ${{ env.CHART_REPO }}
chart_name: block-explorer
chart_set: |
--set=ingress.host=block-explorer.test.mobilecoin.com
--set=image.tag=${{ github.ref_name }}-test
chart_version: ${{ github.ref_name }}
release_name: block-explorer
namespace: block-explorer-testnet
rancher_cluster: ${{ env.TARGET_CLUSTER }}
rancher_url: ${{ secrets.RANCHER_B_URL }}
rancher_token: ${{ secrets.RANCHER_B_TOKEN }}