fix: inline deploy steps — remove dependency on deploy-ubigeo.sh
Some checks failed
Deploy / deploy (push) Failing after 3m39s

Script used docker-compose (v1 syntax), runner has docker compose (v2).
Now builds image and runs compose directly in workflow steps.
This commit is contained in:
Gianpierre Mio
2026-03-10 08:42:19 -05:00
parent 9b40829e56
commit e3a89e82a2

View File

@@ -8,12 +8,6 @@ jobs:
deploy:
runs-on: self-hosted
steps:
- name: Rebuild runner image if needed
run: |
if ! docker run --rm gitea-act-runner-custom:latest node --version > /dev/null 2>&1; then
docker build -t gitea-act-runner-custom:latest -f /home/deployer/gitea-runner.Dockerfile /home/deployer/
fi
- name: Checkout
run: |
if [ ! -d /workspace/darkcodex/api-ubigeo/.git ]; then
@@ -33,8 +27,17 @@ jobs:
--exclude='.env' \
/workspace/darkcodex/api-ubigeo/ /home/deployer/api-ubigeo/
- name: Build & deploy
run: bash /home/deployer/deploy-ubigeo.sh
- name: Build image
run: |
cd /home/deployer/api-ubigeo
docker build -t ubigeo-api:latest .
- name: Deploy containers
run: |
cd /home/deployer/api-ubigeo
docker compose -f docker-compose.production.yml up -d --remove-orphans
- name: Health check
run: curl -f https://api-ubigeo.darkcodex.dev/api/v1/health
run: |
sleep 10
curl -f https://api-ubigeo.darkcodex.dev/api/v1/health