From e3a89e82a25b9b4d7740a656db3dd189d11422ad Mon Sep 17 00:00:00 2001 From: Gianpierre Mio <88248836+DarkCodex29@users.noreply.github.com> Date: Tue, 10 Mar 2026 08:42:19 -0500 Subject: [PATCH] =?UTF-8?q?fix:=20inline=20deploy=20steps=20=E2=80=94=20re?= =?UTF-8?q?move=20dependency=20on=20deploy-ubigeo.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Script used docker-compose (v1 syntax), runner has docker compose (v2). Now builds image and runs compose directly in workflow steps. --- .github/workflows/deploy.yml | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 4c83fb7..8ae32a0 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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