funcionalidad filtrado de fechas - falta mas diseño #45
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Construir imagenes de docker y subir a GCR | |
on: | |
push: | |
branches: | |
- development | |
jobs: | |
build: | |
runs-on: potus | |
steps: | |
# Paso 1: Checkout del repositorio | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
# Paso 2: Configurar Docker | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
# Paso 3: Autenticar en GitHub Container Registry | |
- name: Log in to GitHub Container Registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
## Backend | |
# Paso 4: Construir la imagen Docker especificando el subdirectorio del Dockerfile | |
- name: Build Docker image backend | |
run: docker build -t ghcr.io/devmasters2-0/tp-inicial-laboratorio/nms-server-dev:latest ./backend | |
# Paso 5: Subir la imagen al GitHub Container Registry | |
- name: Push Docker image to GCR backend | |
run: docker push ghcr.io/devmasters2-0/tp-inicial-laboratorio/nms-server-dev:latest | |
## Admin-Frontend | |
# Paso 6: Construir la imagen Docker especificando el subdirectorio del Dockerfile | |
- name: Build Docker image admin | |
run: docker build -t ghcr.io/devmasters2-0/tp-inicial-laboratorio/nms-admin-dev:latest ./admin | |
# Paso 7: Subir la imagen al GitHub Container Registry | |
- name: Push Docker image to GCR admin | |
run: docker push ghcr.io/devmasters2-0/tp-inicial-laboratorio/nms-admin-dev:latest | |
## User-Frontend | |
# Paso 8: Construir la imagen Docker especificando el subdirectorio del Dockerfile | |
- name: Build Docker image client | |
run: docker build -t ghcr.io/devmasters2-0/tp-inicial-laboratorio/nms-client-dev:latest ./client | |
# Paso 9: Subir la imagen al GitHub Container Registry | |
- name: Push Docker image to GCR Client | |
run: docker push ghcr.io/devmasters2-0/tp-inicial-laboratorio/nms-client-dev:latest | |
# Paso 10: Desplegar en la nube de PWS | |
# Paso 10: Desplegar en la nube de PWS | |
- name: Bajar servicio anterior 1 | |
run: docker-compose -f docker-compose-dev.yml -p dm-nms down | |
- name: Bajar servicio anterior 2 | |
run: docker-compose -f docker-compose-dev.yml -p dm-nms down | |
- name: Desplegar en PWS | |
run: docker-compose -f docker-compose-dev.yml -p dm-nms up -d |