From 0121e30035692ef2753f2080ac8a6613915c391a Mon Sep 17 00:00:00 2001 From: serafettin Date: Sun, 14 Jan 2024 22:02:15 +0100 Subject: [PATCH] Monorepo --- .../build.yaml => .github/workflows/api-ci.yaml | 12 ++++++------ .../build.yaml => .github/workflows/indexer-ci.yaml | 10 +++++----- .../build.yaml => .github/workflows/web-app-ci.yaml | 10 +++++----- 3 files changed, 16 insertions(+), 16 deletions(-) rename api/.github/workflows/build.yaml => .github/workflows/api-ci.yaml (69%) rename indexer/.github/workflows/build.yaml => .github/workflows/indexer-ci.yaml (75%) rename web-app/.github/workflows/build.yaml => .github/workflows/web-app-ci.yaml (75%) diff --git a/api/.github/workflows/build.yaml b/.github/workflows/api-ci.yaml similarity index 69% rename from api/.github/workflows/build.yaml rename to .github/workflows/api-ci.yaml index e8aca45a..a4aa428c 100644 --- a/api/.github/workflows/build.yaml +++ b/.github/workflows/api-ci.yaml @@ -60,12 +60,12 @@ jobs: DOCKER_REGISTRY: 236785930124.dkr.ecr.us-east-1.amazonaws.com run: | docker build -t $DOCKER_TAG . - docker tag $DOCKER_TAG $DOCKER_REGISTRY/$DOCKER_TAG - docker push $DOCKER_REGISTRY/$DOCKER_TAG - docker tag $DOCKER_TAG $DOCKER_REGISTRY/indexnetwork/web3-api:latest-${GITHUB_REF#refs/heads/} - docker push $DOCKER_REGISTRY/indexnetwork/web3-api:latest-${GITHUB_REF#refs/heads/} + # docker tag $DOCKER_TAG $DOCKER_REGISTRY/$DOCKER_TAG + # docker push $DOCKER_REGISTRY/$DOCKER_TAG + # docker tag $DOCKER_TAG $DOCKER_REGISTRY/indexnetwork/web3-api:latest-${GITHUB_REF#refs/heads/} + # docker push $DOCKER_REGISTRY/indexnetwork/web3-api:latest-${GITHUB_REF#refs/heads/} - name: Deploy run: |- - kubectl set image deployment/api api=236785930124.dkr.ecr.us-east-1.amazonaws.com/indexnetwork/web3-api:${{ steps.build-time.outputs.time }} --namespace env-${GITHUB_REF#refs/heads/} - kubectl set image deployment/consumer consumer=236785930124.dkr.ecr.us-east-1.amazonaws.com/indexnetwork/web3-api:${{ steps.build-time.outputs.time }} --namespace env-${GITHUB_REF#refs/heads/} + # kubectl set image deployment/api api=236785930124.dkr.ecr.us-east-1.amazonaws.com/indexnetwork/web3-api:${{ steps.build-time.outputs.time }} --namespace env-${GITHUB_REF#refs/heads/} + # kubectl set image deployment/consumer consumer=236785930124.dkr.ecr.us-east-1.amazonaws.com/indexnetwork/web3-api:${{ steps.build-time.outputs.time }} --namespace env-${GITHUB_REF#refs/heads/} diff --git a/indexer/.github/workflows/build.yaml b/.github/workflows/indexer-ci.yaml similarity index 75% rename from indexer/.github/workflows/build.yaml rename to .github/workflows/indexer-ci.yaml index 4aa3d586..7492704e 100644 --- a/indexer/.github/workflows/build.yaml +++ b/.github/workflows/indexer-ci.yaml @@ -60,11 +60,11 @@ jobs: DOCKER_REGISTRY: 236785930124.dkr.ecr.us-east-1.amazonaws.com run: | docker build -t $DOCKER_TAG . - docker tag $DOCKER_TAG $DOCKER_REGISTRY/$DOCKER_TAG - docker push $DOCKER_REGISTRY/$DOCKER_TAG - docker tag $DOCKER_TAG $DOCKER_REGISTRY/indexnetwork/llm-indexer:latest-${GITHUB_REF#refs/heads/} - docker push $DOCKER_REGISTRY/indexnetwork/llm-indexer:latest-${GITHUB_REF#refs/heads/} + # docker tag $DOCKER_TAG $DOCKER_REGISTRY/$DOCKER_TAG + # docker push $DOCKER_REGISTRY/$DOCKER_TAG + # docker tag $DOCKER_TAG $DOCKER_REGISTRY/indexnetwork/llm-indexer:latest-${GITHUB_REF#refs/heads/} + # docker push $DOCKER_REGISTRY/indexnetwork/llm-indexer:latest-${GITHUB_REF#refs/heads/} - name: Deploy run: |- - kubectl set image deployment/llm-indexer llm-indexer=236785930124.dkr.ecr.us-east-1.amazonaws.com/indexnetwork/llm-indexer:${{ steps.build-time.outputs.time }} --namespace env-${GITHUB_REF#refs/heads/} \ No newline at end of file + # kubectl set image deployment/llm-indexer llm-indexer=236785930124.dkr.ecr.us-east-1.amazonaws.com/indexnetwork/llm-indexer:${{ steps.build-time.outputs.time }} --namespace env-${GITHUB_REF#refs/heads/} \ No newline at end of file diff --git a/web-app/.github/workflows/build.yaml b/.github/workflows/web-app-ci.yaml similarity index 75% rename from web-app/.github/workflows/build.yaml rename to .github/workflows/web-app-ci.yaml index 2ab8977b..0662abdd 100644 --- a/web-app/.github/workflows/build.yaml +++ b/.github/workflows/web-app-ci.yaml @@ -60,11 +60,11 @@ jobs: DOCKER_REGISTRY: 236785930124.dkr.ecr.us-east-1.amazonaws.com run: | docker build -t $DOCKER_TAG . - docker tag $DOCKER_TAG $DOCKER_REGISTRY/$DOCKER_TAG - docker push $DOCKER_REGISTRY/$DOCKER_TAG - docker tag $DOCKER_TAG $DOCKER_REGISTRY/indexnetwork/web3-web-app:latest-${GITHUB_REF#refs/heads/} - docker push $DOCKER_REGISTRY/indexnetwork/web3-web-app:latest-${GITHUB_REF#refs/heads/} + # docker tag $DOCKER_TAG $DOCKER_REGISTRY/$DOCKER_TAG + # docker push $DOCKER_REGISTRY/$DOCKER_TAG + # docker tag $DOCKER_TAG $DOCKER_REGISTRY/indexnetwork/web3-web-app:latest-${GITHUB_REF#refs/heads/} + # docker push $DOCKER_REGISTRY/indexnetwork/web3-web-app:latest-${GITHUB_REF#refs/heads/} - name: Deploy run: |- - kubectl set image deployment/frontend frontend=236785930124.dkr.ecr.us-east-1.amazonaws.com/indexnetwork/web3-web-app:${{ steps.build-time.outputs.time }} --namespace env-${GITHUB_REF#refs/heads/} + # kubectl set image deployment/frontend frontend=236785930124.dkr.ecr.us-east-1.amazonaws.com/indexnetwork/web3-web-app:${{ steps.build-time.outputs.time }} --namespace env-${GITHUB_REF#refs/heads/}