Skip to content

Commit

Permalink
disable test for deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
vabatista committed Mar 12, 2024
1 parent 2ab58b3 commit 1ce8316
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
19 changes: 9 additions & 10 deletions .github/workflows/main_viviaviajando-backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ jobs:
run: |
npm install
npm run build --if-present
npm run test --if-present
- name: Zip artifact for deployment
run: zip release.zip ./* -r
Expand All @@ -42,8 +41,8 @@ jobs:
environment:
name: 'Production'
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
permissions:
id-token: write #This is required for requesting the JWT
permissions:
id-token: write #This is required for requesting the JWT

steps:
- name: Download artifact from build job
Expand All @@ -53,13 +52,13 @@ jobs:

- name: Unzip artifact for deployment
run: unzip release.zip

- name: Login to Azure
uses: azure/login@v1
with:
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_3DD671691C5244C8AD7D7B3A4663FB3B }}
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_E758DF6062D04E98A2D5FE733FE70F81 }}
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_C326FE2FF65043EAAE74858A2E8D013E }}

- name: Login to Azure
uses: azure/login@v1
with:
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_3DD671691C5244C8AD7D7B3A4663FB3B }}
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_E758DF6062D04E98A2D5FE733FE70F81 }}
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_C326FE2FF65043EAAE74858A2E8D013E }}

- name: 'Deploy to Azure Web App'
id: deploy-to-webapp
Expand Down
2 changes: 1 addition & 1 deletion config/db.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import mongoose from 'mongoose';
dotenv.config();
export default function connectDB() {
const url = process.env.MONGODB_URI;

console.log(url)
try {
mongoose.connect(url);
} catch (err) {
Expand Down

0 comments on commit 1ce8316

Please sign in to comment.