diff --git a/.github/actions/mainnet/deploy-v1-indexer/action.yaml b/.github/actions/mainnet/deploy-v1-indexer/action.yaml index be1944f2..e124f435 100644 --- a/.github/actions/mainnet/deploy-v1-indexer/action.yaml +++ b/.github/actions/mainnet/deploy-v1-indexer/action.yaml @@ -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 diff --git a/.github/actions/mainnet/deploy-v1-operator/action.yaml b/.github/actions/mainnet/deploy-v1-operator/action.yaml index 28b3430a..63c0ee56 100644 --- a/.github/actions/mainnet/deploy-v1-operator/action.yaml +++ b/.github/actions/mainnet/deploy-v1-operator/action.yaml @@ -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 diff --git a/.github/actions/mainnet/deploy-v2-indexer/action.yaml b/.github/actions/mainnet/deploy-v2-indexer/action.yaml index 1cffa692..efac38a7 100644 --- a/.github/actions/mainnet/deploy-v2-indexer/action.yaml +++ b/.github/actions/mainnet/deploy-v2-indexer/action.yaml @@ -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 diff --git a/.github/actions/mainnet/deploy-v2-operator/action.yaml b/.github/actions/mainnet/deploy-v2-operator/action.yaml index 5abce690..302107c8 100644 --- a/.github/actions/mainnet/deploy-v2-operator/action.yaml +++ b/.github/actions/mainnet/deploy-v2-operator/action.yaml @@ -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 diff --git a/.github/actions/mainnet/initial-setup/action.yaml b/.github/actions/mainnet/initial-setup/action.yaml index 44a31aa9..24e54e2f 100644 --- a/.github/actions/mainnet/initial-setup/action.yaml +++ b/.github/actions/mainnet/initial-setup/action.yaml @@ -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 @@ -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 diff --git a/.github/workflows/cicd_clis_mainnet.yaml b/.github/workflows/cicd_clis_mainnet.yaml index e409d164..e45caaf4 100644 --- a/.github/workflows/cicd_clis_mainnet.yaml +++ b/.github/workflows/cicd_clis_mainnet.yaml @@ -1,4 +1,4 @@ -name: Deploy holoclis to prod[mainnet] +name: Deploy holoclis to prod2[mainnet] permissions: id-token: write @@ -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 }} @@ -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' ####################################### @@ -49,7 +49,7 @@ env: #on: # push: # branches: -# - 'something' +# - 'feat/deploy-mainnet-cli-into-prod2' # # Excluded branches # - '!develop' # - '!main' @@ -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