Skip to content

Commit

Permalink
Merge branch 'devops' into development
Browse files Browse the repository at this point in the history
  • Loading branch information
logos914 committed Sep 11, 2024
2 parents 329c411 + 219a679 commit 1e63f7e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 20 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/dev-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,5 @@ jobs:
EMAIL_SMTP_USER: ${{ secrets.EMAIL_SMTP_USER }}
EMAIL_SMTP_PASSWORD: ${{ secrets.EMAIL_SMTP_PASSWORD }}
EMAIL_SMTP_SERVER: ${{ secrets.EMAIL_SMTP_SERVER }}
VITE_BASE_URL: ${{ secrets.VITE_BASE_URL }}
TEST: "true"
VITE_API_IMAGE: ${{ secrets.VITE_API_IMAGE }}
run: docker-compose -f docker-compose-dev.yml -p dm-nms up -d
20 changes: 3 additions & 17 deletions .github/workflows/prod-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,29 +32,12 @@ jobs:
run: npm run build
env:
VITE_API_KEY: ${{ secrets.VITE_API_KEY }}


build-admin:
runs-on: potus
needs: setup
steps:
- uses: actions/setup-node@v4
with:
node-version: 22
- name: Setup dependencias de admin
working-directory: ./admin
run: npm install
- name: Buildear admin
working-directory: ./admin
run: npm run build




deploy-front:
runs-on: potus
needs: [build-admin, build-client]
steps:
- uses: lowply/deploy-firebase@v0.0.5
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
Expand Down Expand Up @@ -97,7 +80,10 @@ jobs:
EMAIL_SMTP_USER: ${{ secrets.EMAIL_SMTP_USER }}
EMAIL_SMTP_PASSWORD: ${{ secrets.EMAIL_SMTP_PASSWORD }}
EMAIL_SMTP_SERVER: ${{ secrets.EMAIL_SMTP_SERVER }}
<<<<<<< HEAD
VITE_BASE_URL: ${{ secrets.VITE_BASE_URL }}
TEST: "true"
=======
>>>>>>> devops
run: docker-compose -f docker-compose-prod.yml -p dm-nms up -d

2 changes: 1 addition & 1 deletion docker-compose-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ services:
ports:
- "5173:5173"
environment:
- VITE_BASE_URL=${VITE_BASE_URL}
- VITE_API_IMAGE=${VITE_API_IMAGE}

networks:
default:
Expand Down

0 comments on commit 1e63f7e

Please sign in to comment.