Modulo planilla v1
Some checks failed
build-and-push / build (push) Successful in 33s
build-and-push / deploy (push) Failing after 1s

This commit is contained in:
2025-05-02 17:59:47 -06:00
parent 76138f676d
commit e1dc751397
760 changed files with 82397 additions and 10 deletions

View File

@@ -21,13 +21,34 @@ jobs:
username: nucleo000
password: 7bc7b2fcd283bd6a251bef3ede368b7f897c919d
- name: Build
run: docker build -t gitea.interno.com/nucleo000/planilla:${{ github.sha }} -t gitea.interno.com/nucleo000/planilla:latest .
- name: Build root service
run: |
docker build -f ./Dockerfile \
-t gitea.interno.com/nucleo000/planilla:${{ github.sha }} \
-t gitea.interno.com/nucleo000/planilla:latest .
- name: Push
- name: Build API service
run: |
docker build -f ./api/Dockerfile \
-t gitea.interno.com/nucleo000/planilla-api:${{ github.sha }} \
-t gitea.interno.com/nucleo000/planilla-api:latest \
./api
- name: Build UI service
run: |
docker build -f ./ui/Dockerfile \
-t gitea.interno.com/nucleo000/planilla-ui:${{ github.sha }} \
-t gitea.interno.com/nucleo000/planilla-ui:latest \
./ui
- name: Push images
run: |
docker push gitea.interno.com/nucleo000/planilla:${{ github.sha }}
docker push gitea.interno.com/nucleo000/planilla:latest
docker push gitea.interno.com/nucleo000/planilla-api:${{ github.sha }}
docker push gitea.interno.com/nucleo000/planilla-api:latest
docker push gitea.interno.com/nucleo000/planilla-ui:${{ github.sha }}
docker push gitea.interno.com/nucleo000/planilla-ui:latest
deploy:
runs-on: docker
@@ -39,12 +60,16 @@ jobs:
- name: Login to registry
run: docker login gitea.interno.com -u nucleo000 -p 7bc7b2fcd283bd6a251bef3ede368b7f897c919d
- name: Pull latest image
run: docker pull gitea.interno.com/nucleo000/planilla:latest
- name: Pull latest images
run: |
docker pull gitea.interno.com/nucleo000/planilla:latest
docker pull gitea.interno.com/nucleo000/planilla-api:latest
docker pull gitea.interno.com/nucleo000/planilla-ui:latest
- name: Stop and remove existing container
run: docker rm -f planilla || true
- name: Restart container
run: docker compose --project-name planilla up -d planilla
- name: Stop existing containers
run: |
docker rm -f planilla planilla-api planilla-ui || true
- name: Restart services
run: |
docker compose --project-name planilla up -d planilla api ui