Skip to content

Commit

Permalink
Remove backend deploy (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
chromium-52 authored Feb 20, 2024
1 parent 015dda7 commit b6bf949
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b6bf949

Please sign in to comment.