Skip to content

KAN-27 Beautify el nombre del email #10

KAN-27 Beautify el nombre del email

KAN-27 Beautify el nombre del email #10

Workflow file for this run

# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools
name: Producction CI/CD
on:
push:
branches:
- devops # para testear, luego @TO-DO: cambiar a main
permissions:
checks: write
contents: read
pull-requests: write
jobs:
setup:
runs-on: potus
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
build-client:
runs-on: potus
needs: setup
steps:
- name: Setup dependencias de client
working-directory: ./client
run: npm install
- name: Buildear client
working-directory: ./client
run: npm run build
build-admin:
runs-on: potus
needs: setup
steps:
- name: Setup dependencias de admin
working-directory: ./admin
run: npm install
- name: Buildear admin
working-directory: ./admin
run: npm run build
deploy-client:
runs-on: potus
needs: build-client
steps:
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: ${{ secrets.GITHUB_TOKEN }}
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_NMS_DEVMASTER }}
projectId: nms-devmaster
target: web-client
deploy-admin:
runs-on: potus
needs: setup
steps:
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: ${{ secrets.GITHUB_TOKEN }}
firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_NMS_DEVMASTER }}
projectId: nms-devmaster
target: web-admin
build-server:
runs-on: potus
needs: setup
steps:
- name: Build Docker image BACKEND
run: docker build -t ghcr.io/devmasters2-0/tp-inicial-laboratorio/nms-server:latest -f ./backend/Dockerfile-prod ./backend