sistema creado v0.5.0
Some checks failed
build-and-push / deploy (push) Has been skipped
build-and-push / build (push) Failing after 6s

This commit is contained in:
2025-05-14 16:10:41 -06:00
parent b5e40cf4ac
commit 745168cf51
193 changed files with 7267 additions and 8789 deletions

View File

@@ -0,0 +1,73 @@
name: build-and-push
on:
push:
branches: [ main ]
jobs:
build:
runs-on: docker
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to registry
uses: docker/login-action@v2
with:
registry: gitea.interno.com
username: nucleo000
password: 7bc7b2fcd283bd6a251bef3ede368b7f897c919d
- name: Build root image
run: |
docker build -f ./Dockerfile \
-t gitea.interno.com/nucleo000/planilla:${{ github.sha }} \
-t gitea.interno.com/nucleo000/planilla:latest .
- name: Build API image
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 image
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: |
for img in planilla planilla-api planilla-ui; do
docker push gitea.interno.com/nucleo000/$img:${{ github.sha }}
docker push gitea.interno.com/nucleo000/$img:latest
done
deploy:
runs-on: docker
needs: build
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Login to registry
run: |
echo "Logging into registry…"
docker login gitea.interno.com -u nucleo000 -p 7bc7b2fcd283bd6a251bef3ede368b7f897c919d
- 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: Teardown previous stack
run: docker compose down --remove-orphans || true
- name: Start all services fresh
run: docker compose up -d --build --force-recreate --remove-orphans

View File

@@ -8,25 +8,31 @@ jobs:
build:
runs-on: docker
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- uses: docker/setup-buildx-action@v2
- name: Login to registry
uses: docker/login-action@v2
with:
registry: gitea.interno.com
username: nucleo000
password: 7bc7b2fcd283bd6a251bef3ede368b7f897c919d
username: nucleo000 # ⬅ ponelo en secrets
password: 7bc7b2fcd283bd6a251bef3ede368b7f897c919d # ⬅ idem
# ──────────────── builds ────────────────
- name: Build root image
run: |
docker build -f ./Dockerfile \
-t gitea.interno.com/nucleo000/planilla:${{ github.sha }} \
-t gitea.interno.com/nucleo000/planilla:latest .
- name: Build AGENT image
run: |
docker build -f ./agent/Dockerfile \
-t gitea.interno.com/nucleo000/planilla-agent:${{ github.sha }} \
-t gitea.interno.com/nucleo000/planilla-agent:latest \
./agent
- name: Build API image
run: |
docker build -f ./api/Dockerfile \
@@ -34,6 +40,13 @@ jobs:
-t gitea.interno.com/nucleo000/planilla-api:latest \
./api
- name: Build MCP image
run: |
docker build -f ./mcp/Dockerfile \
-t gitea.interno.com/nucleo000/planilla-mcp:${{ github.sha }} \
-t gitea.interno.com/nucleo000/planilla-mcp:latest \
./mcp
- name: Build UI image
run: |
docker build -f ./ui/Dockerfile \
@@ -41,9 +54,22 @@ jobs:
-t gitea.interno.com/nucleo000/planilla-ui:latest \
./ui
- name: Build WORKER image
run: |
docker build -f ./worker/Dockerfile \
-t gitea.interno.com/nucleo000/planilla-worker:${{ github.sha }} \
-t gitea.interno.com/nucleo000/planilla-worker:latest \
./worker
# ──────────────── push loop ────────────────
- name: Push images
run: |
for img in planilla planilla-api planilla-ui; do
for img in planilla \
planilla-agent \
planilla-api \
planilla-mcp \
planilla-ui \
planilla-worker; do
docker push gitea.interno.com/nucleo000/$img:${{ github.sha }}
docker push gitea.interno.com/nucleo000/$img:latest
done
@@ -52,19 +78,21 @@ jobs:
runs-on: docker
needs: build
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/checkout@v3
- name: Login to registry
run: |
echo "Logging into registry…"
docker login gitea.interno.com -u nucleo000 -p 7bc7b2fcd283bd6a251bef3ede368b7f897c919d
run: docker login gitea.interno.com -u nucleo000 -p 7bc7b2fcd283bd6a251bef3ede368b7f897c919d
- 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
for img in planilla \
planilla-agent \
planilla-api \
planilla-mcp \
planilla-ui \
planilla-worker; do
docker pull gitea.interno.com/nucleo000/$img:latest
done
- name: Teardown previous stack
run: docker compose down --remove-orphans || true