From 3a2f7a921b4931d0c04c06b2cd649aa96193b851 Mon Sep 17 00:00:00 2001 From: serafettin Date: Sun, 14 Jan 2024 22:24:54 +0100 Subject: [PATCH] Monorepo initial --- .github/workflows/api-ci.yaml | 12 ++++++------ .github/workflows/indexer-ci.yaml | 10 +++++----- .github/workflows/web-app-ci.yaml | 10 +++++----- web-app/.idea/inspectionProfiles/Project_Default.xml | 6 ------ web-app/.idea/modules.xml | 8 -------- web-app/.idea/vcs.xml | 6 ------ 6 files changed, 16 insertions(+), 36 deletions(-) delete mode 100644 web-app/.idea/inspectionProfiles/Project_Default.xml delete mode 100644 web-app/.idea/modules.xml delete mode 100644 web-app/.idea/vcs.xml diff --git a/.github/workflows/api-ci.yaml b/.github/workflows/api-ci.yaml index 66425999..eb8abe9d 100644 --- a/.github/workflows/api-ci.yaml +++ b/.github/workflows/api-ci.yaml @@ -63,12 +63,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/.github/workflows/indexer-ci.yaml b/.github/workflows/indexer-ci.yaml index a288cbf3..22c0f487 100644 --- a/.github/workflows/indexer-ci.yaml +++ b/.github/workflows/indexer-ci.yaml @@ -63,11 +63,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/.github/workflows/web-app-ci.yaml b/.github/workflows/web-app-ci.yaml index a7995d8a..6d78635d 100644 --- a/.github/workflows/web-app-ci.yaml +++ b/.github/workflows/web-app-ci.yaml @@ -63,11 +63,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/} diff --git a/web-app/.idea/inspectionProfiles/Project_Default.xml b/web-app/.idea/inspectionProfiles/Project_Default.xml deleted file mode 100644 index 03d9549e..00000000 --- a/web-app/.idea/inspectionProfiles/Project_Default.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - \ No newline at end of file diff --git a/web-app/.idea/modules.xml b/web-app/.idea/modules.xml deleted file mode 100644 index a7bbfd62..00000000 --- a/web-app/.idea/modules.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/web-app/.idea/vcs.xml b/web-app/.idea/vcs.xml deleted file mode 100644 index 94a25f7f..00000000 --- a/web-app/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file