Skip to content

Commit

Permalink
Update CI-CD-k8s-release-deploy.yml
Browse files Browse the repository at this point in the history
idea-release
  • Loading branch information
sergeyfilyanin authored Aug 14, 2024
1 parent 6130b65 commit d88d568
Showing 1 changed file with 3 additions and 106 deletions.
109 changes: 3 additions & 106 deletions .github/workflows/CI-CD-k8s-release-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,116 +67,13 @@ jobs:
VITE_GTM_ID=${{ secrets.VITE_GTM_ID}}
VITE_MAINNET_VOUCHERS_API_URL=${{ secrets.VITE_MAINNET_VOUCHERS_API_URL }}
VITE_TESTNET_VOUCHERS_API_URL=${{ secrets.VITE_TESTNET_VOUCHERS_API_URL }}
VITE_INDEXER_API_URL=${{ secrets.VITE_INDEXER_API_URL }}
VITE_DNS_API_URL=${{ secrets.VITE_DNS_API_URL }}
build-indexer-image-prod:
runs-on: ubuntu-latest
needs: [tag-prod-version]
permissions:
contents: read
packages: write

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Log in to the github container registry
uses: docker/login-action@master
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push Indexer Docker image
uses: docker/build-push-action@master
with:
file: idea/indexer/Dockerfile
push: true
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-indexer:prod

build-and-push-meta-storage-image:
runs-on: ubuntu-latest
needs: [tag-prod-version]
permissions:
contents: read
packages: write

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Log in to the github container registry
uses: docker/login-action@master
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push Meta Storage Docker image
uses: docker/build-push-action@master
with:
file: idea/meta-storage/Dockerfile
push: true
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-meta-storage:prod

build-api-gateway-image-prod:
runs-on: ubuntu-latest
needs: [tag-prod-version]
permissions:
contents: read
packages: write

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Log in to the github container registry
uses: docker/login-action@master
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push Api Gateway Docker image
uses: docker/build-push-action@master
with:
file: idea/api-gateway/Dockerfile
push: true
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-api-gateway:prod

build-test-balance-image-prod:
runs-on: ubuntu-latest
needs: [tag-prod-version]
permissions:
contents: read
packages: write

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Log in to the github container registry
uses: docker/login-action@master
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push Test Balance Docker image
uses: docker/build-push-action@master
with:
file: idea/test-balance/Dockerfile
push: true
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-test-balance:prod

deploy-to-k8s-prod:
needs:
[
build-frontend-image-prod,
build-and-push-meta-storage-image,
build-indexer-image-prod,
build-api-gateway-image-prod,
build-test-balance-image-prod,
build-frontend-image-prod
]
runs-on: ubuntu-latest

Expand All @@ -191,7 +88,7 @@ jobs:
- name: Deploy to k8s
uses: sergeyfilyanin/kubectl-aws-eks@master
with:
args: rollout restart deployment api-gateway indexer-testnet indexer-vara indexer-workshop test-balance-testnet frontend-nginx meta-storage -n prod-idea
args: rollout restart deployment frontend-nginx -n prod-idea

- name: Check k8s deployments
uses: sergeyfilyanin/kubectl-aws-eks@master
Expand Down

0 comments on commit d88d568

Please sign in to comment.