Skip to content

(Manual) Deploy

(Manual) Deploy #11

name: (Manual) Deploy
env:
DOCKERHUB_ORG: mobilecoin
REPO_NAME: reserve-auditor
TARGET_CLUSTER: utility-r1-d-k8s
CHART_REPO: https://harbor.mobilecoin.com/chartrepo/mobilecoinfoundation-public
CHART_PATH: ./.internal-ci/charts/reserve-auditor
on:
workflow_dispatch: {}
jobs:
prod-deploy:
runs-on: mco-dev-small-x64
strategy:
matrix:
target: [mainnet, testnet]
steps:
- name: Checkout
uses: mobilecoinofficial/gh-actions/checkout@v0
- name: Create ${{ matrix.target }} namespace
uses: mobilecoinofficial/gha-k8s-toolbox@v1
with:
action: namespace-create
namespace: ${{ matrix.target }}-reserve-auditor
rancher_cluster: ${{ env.TARGET_CLUSTER }}
rancher_url: ${{ secrets.RANCHER_B_URL }}
rancher_token: ${{ secrets.RANCHER_B_TOKEN }}
- name: Deploys ${{ matrix.target }} release
uses: mobilecoinofficial/gha-k8s-toolbox@v1
with:
action: helm-deploy
rancher_cluster: ${{ env.TARGET_CLUSTER }}
namespace: ${{ matrix.target }}-reserve-auditor
release_name: ${{ matrix.target }}-${{ env.REPO_NAME }}
rancher_url: ${{ secrets.RANCHER_B_URL }}
rancher_token: ${{ secrets.RANCHER_B_TOKEN }}
chart_repo: ${{ env.CHART_REPO }}
chart_name: ${{ env.REPO_NAME}}
chart_version: ${{ github.ref_name }}
chart_values: ${{ env.CHART_PATH }}/${{ matrix.target }}-values.yaml
chart_set: |
--set=mobilecoind.image.tag=${{ github.ref_name }}-${{ matrix.target }}