Skip to content

Commit

Permalink
Update CI-CD-k8s-release-deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeyfilyanin authored Jun 18, 2024
1 parent 453745d commit b7de50d
Showing 1 changed file with 2 additions and 81 deletions.
83 changes: 2 additions & 81 deletions .github/workflows/CI-CD-k8s-release-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,89 +93,10 @@ jobs:
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 @@ -190,7 +111,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 b7de50d

Please sign in to comment.