Skip to content

Commit

Permalink
Fix workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
mridul549 committed May 29, 2024
1 parent 5e01a32 commit 183e008
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 31 deletions.
28 changes: 0 additions & 28 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,31 +29,3 @@ jobs:
- name: Run Tests
run: |
npm test
# - name: Setup AWS CLI
# uses: aws-actions/configure-aws-credentials@v1
# with:
# aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
# aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
# aws-region: eu-north-1

# - name: SSH and Pull Changes in EC2
# run: |
# # Install SSH client (might be already available in the runner)
# sudo apt-get install openssh-client

# # SSH into the EC2 instance and pull changes
# ssh -o StrictHostKeyChecking=no -i /path/to/your/private_key.pem [email protected] "cd workspace/OrderApp/ && git pull"

# - name: Build (if necessary)
# run: |
# # Build commands or Docker build for containerized apps.

# - name: Deploy
# run: |
# # You can use AWS CLI, Azure CLI, etc., based on where you're deploying.
# # Ensure you've set up necessary secrets for deployments.

# - name: Post-Deployment Checks
# run: |
# # Smoke tests or other post-deployment checks to ensure the deployed application is running.
7 changes: 4 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: |
# testing the npm ci cmd
npm ci
- run: npm ci
- run: npm install
- run: sudo pm2 restart flavr-backend

0 comments on commit 183e008

Please sign in to comment.