Skip to content

Commit

Permalink
Merge pull request #689 from holographxyz/develop
Browse files Browse the repository at this point in the history
Release/012-Blondie-v11-testnet-v2
  • Loading branch information
sogoiii authored Jun 27, 2024
2 parents bdeabb9 + a9a1130 commit 5814795
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/actions/mainnet/deploy-v1-indexer/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: 'deploy-v1-indexer'
runs:
using: 'composite'
steps:
- name: -> V1 -- Deploy INDEXER cli in MAINNET [namespace -> ${{ env.MAINNET_COMMON_NAMESPACE }}]
- name: -> V1 -- Deploy INDEXER cli in MAINNET
uses: tensor-hq/eksctl-helm-action@main
env:
RELEASE_NAME: ${{ env.INDEXER_RELEASE_NAME }} # notice
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/mainnet/deploy-v1-operator/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: 'deploy-v1-operator'
runs:
using: 'composite'
steps:
- name: -> V1 -- Deploy OPERATOR cli in MAINNET [namespace -> ${{ env.MAINNET_COMMON_NAMESPACE }}]
- name: -> V1 -- Deploy OPERATOR cli in MAINNET
uses: tensor-hq/eksctl-helm-action@main
env:
RELEASE_NAME: ${{ env.OPERATOR_RELEASE_NAME }} # notice
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/mainnet/deploy-v2-indexer/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: 'deploy-v2-indexer'
runs:
using: 'composite'
steps:
- name: -> V2 -- Deploy INDEXER cli in MAINNET [namespace -> ${{ env.MAINNET_COMMON_NAMESPACE_V2 }}]
- name: -> V2 -- Deploy INDEXER cli in MAINNET
uses: tensor-hq/eksctl-helm-action@main
env:
RELEASE_NAME: ${{ env.INDEXER_RELEASE_NAME_V2 }} # notice
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/mainnet/deploy-v2-operator/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: 'deploy-v2-operator'
runs:
using: 'composite'
steps:
- name: -> V2 -- Deploy OPERATOR cli in MAINNET [namespace -> ${{ env.MAINNET_COMMON_NAMESPACE_V2 }}]
- name: -> V2 -- Deploy OPERATOR cli in MAINNET
uses: tensor-hq/eksctl-helm-action@main
env:
RELEASE_NAME: ${{ env.OPERATOR_RELEASE_NAME_V2 }} # notice
Expand Down
16 changes: 6 additions & 10 deletions .github/actions/mainnet/initial-setup/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,21 +71,19 @@ runs:
aws-secret-access-key: ${{ env.AWS_ACCESS_KEY }} #notice: unique for each env
aws-region: ${{ env.AWS_REGION }}

# - name: Create ns [${{ env.MAINNET_COMMON_NAMESPACE }}]
# uses: tensor-hq/eksctl-helm-action@main
# with:
# eks_cluster: ${{ env.CLUSTER_NAME }}
# command: |-
# kubectl create namespace ${{ env.MAINNET_COMMON_NAMESPACE }} --dry-run=client -o yaml | kubectl apply -f -
#- name: Create ns [${{ env.MAINNET_COMMON_NAMESPACE }}]
# uses: tensor-hq/eksctl-helm-action@main
# with:
# eks_cluster: ${{ env.CLUSTER_NAME }}
# command: |-
# kubectl create namespace ${{ env.MAINNET_COMMON_NAMESPACE }} --dry-run=client -o yaml | kubectl apply -f -

# NOTICE: --- INDEXER ---
- name: Pull the holograph-indexer helm chart version x.x.x from ECR
shell: bash
env:
#
CHART_REPO: holo-indexer
CHART_VERSION: ${{ env.MAINNET_HOLO_INDEXER_HELM_CHART_VERSION }}
#
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
run: |
helm pull oci://$ECR_REGISTRY/$CHART_REPO --version $CHART_VERSION
Expand All @@ -95,10 +93,8 @@ runs:
- name: Pull the holograph-operator helm chart version x.x.x from ECR
shell: bash
env:
#
CHART_REPO: holo-operator
CHART_VERSION: ${{ env.MAINNET_HOLO_OPERATOR_HELM_CHART_VERSION }}
#
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
run: |
helm pull oci://$ECR_REGISTRY/$CHART_REPO --version $CHART_VERSION
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/cicd_clis_mainnet.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy holoclis to prod[mainnet]
name: Deploy holoclis to prod2[mainnet]

permissions:
id-token: write
Expand All @@ -7,11 +7,11 @@ permissions:
env:
AWS_REGION: us-west-2
IAM_ROLE: arn:aws:iam::177635894328:role/Github_role_to_access_ECR
ECR_REPOSITORY: holo-cli # notice: the same for all cli apps
ECR_REPOSITORY: holo-cli
#
IMAGE_TAG: mainnet-${{ github.sha }}
#
CLUSTER_NAME: prod0
CLUSTER_NAME: 'prod2'
#
AWS_KEY_ID: ${{ secrets.PROD0_CICD_USER_AWS_ACCESS_KEY_ID }}
AWS_ACCESS_KEY: ${{ secrets.PROD0_CICD_USER_AWS_SECRET_ACCESS_KEY }}
Expand All @@ -36,11 +36,11 @@ env:
MAINNET_COMMON_NAMESPACE: 'mainnet'
MAINNET_COMMON_NAMESPACE_V2: 'mainnet-v2'
#######################################
MAINNET_HOLO_INDEXER_HELM_CHART_VERSION: 0.1.88
MAINNET_HOLO_INDEXER_HELM_CHART_VERSION: 0.1.89
INDEXER_RELEASE_NAME: 'blondie-indexer-mainnet' # format -> [release_name]-indexer-[env]
INDEXER_RELEASE_NAME_V2: 'blondie-indexer-mainnet-v2'
#
MAINNET_HOLO_OPERATOR_HELM_CHART_VERSION: 0.1.20
MAINNET_HOLO_OPERATOR_HELM_CHART_VERSION: 0.1.21
OPERATOR_RELEASE_NAME: 'blondie-operator-mainnet' # format -> [release_name]-operator-[env]
OPERATOR_RELEASE_NAME_V2: 'blondie-operator-mainnet-v2'
#######################################
Expand All @@ -49,7 +49,7 @@ env:
#on:
# push:
# branches:
# - 'something'
# - 'feat/deploy-mainnet-cli-into-prod2'
# # Excluded branches
# - '!develop'
# - '!main'
Expand All @@ -62,7 +62,7 @@ on:
types: [closed]

jobs:
deploy-to-prod-mainnet:
deploy-to-prod2-mainnet:
if: github.event.pull_request.merged == true # so no workflow runs when some PR is just closed without being merged
name: Deploy-on-mainnet
runs-on: ubuntu-latest
Expand Down

0 comments on commit 5814795

Please sign in to comment.