From b6bf949fbb595628f7339f808d83c33ccb3581c6 Mon Sep 17 00:00:00 2001 From: Kenny Jung <33704204+chromium-52@users.noreply.github.com> Date: Tue, 20 Feb 2024 14:06:29 -0500 Subject: [PATCH] Remove backend deploy (#49) --- .github/workflows/ci-cd.yml | 48 ++++++++++++++++++------------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index 6e97ca2..4785f96 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -87,27 +87,27 @@ jobs: env: C4C_OPS_WEBHOOK_DEPLOY: ${{ secrets.C4C_OPS_WEBHOOK_DEPLOY }} - deploy-backend: - needs: pre-deploy - if: (contains(github.event.inputs.manual-deploy, 'backend') || contains(needs.pre-deploy.outputs.affected, 'backend')) && (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && github.ref == 'refs/heads/main' - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Use Node.js 16 - uses: actions/setup-node@v3 - with: - node-version: 16.x - cache: 'yarn' - - - name: Install Dependencies - run: yarn install - - - run: npx nx build backend --configuration production - - name: default deploy - uses: appleboy/lambda-action@master - with: - aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }} - aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - aws_region: ${{ secrets.AWS_REGION }} - function_name: monarch-monolith-lambda - source: dist/apps/c4c-ops/backend/main.js + # deploy-backend: + # needs: pre-deploy + # if: (contains(github.event.inputs.manual-deploy, 'backend') || contains(needs.pre-deploy.outputs.affected, 'backend')) && (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && github.ref == 'refs/heads/main' + # runs-on: ubuntu-latest + # steps: + # - uses: actions/checkout@v3 + # - name: Use Node.js 16 + # uses: actions/setup-node@v3 + # with: + # node-version: 16.x + # cache: 'yarn' + + # - name: Install Dependencies + # run: yarn install + + # - run: npx nx build backend --configuration production + # - name: default deploy + # uses: appleboy/lambda-action@master + # with: + # aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }} + # aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + # aws_region: ${{ secrets.AWS_REGION }} + # function_name: monarch-monolith-lambda + # source: dist/apps/c4c-ops/backend/main.js