From f1523798820260b6629198875ca0860a05bdec76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Arag=C3=B3n?= Date: Thu, 9 Jul 2026 15:23:40 +0000 Subject: [PATCH] fix(ci): add concurrency guard + PR trigger + workflow_dispatch Apply the same concurrency pattern used in the python-project-template: - cancel-in-progress: false prevents the shared act_runner from cancelling in-progress steps when a new push lands - pull_request trigger ensures PRs are validated before merge - workflow_dispatch allows manual re-runs --- .gitea/workflows/ci-cd.yaml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/ci-cd.yaml b/.gitea/workflows/ci-cd.yaml index ae248a7..9f61ff2 100644 --- a/.gitea/workflows/ci-cd.yaml +++ b/.gitea/workflows/ci-cd.yaml @@ -3,9 +3,20 @@ name: CI/CD Pipeline on: push: branches: [main] + pull_request: + branches: [main] + workflow_dispatch: + +# Serialise runs on the shared act_runner: prevents two simultaneous runs from +# cancelling each other's in-progress steps (observed in older portfolio runs). +# See python-project-template-internal/.gitea/workflows/ci.yaml for the same +# pattern with full context (runs 794 and 799). +concurrency: + group: ci-${{ github.ref }} + cancel-in-progress: false jobs: - deploy: + build: name: Build & Deploy runs-on: ubuntu-latest steps: @@ -15,4 +26,4 @@ jobs: run: | docker login gitlab.impresion3d.pro -u "${{ secrets.DOCKER_USERNAME }}" -p "${{ secrets.DOCKER_PASSWORD }}" docker build -t gitlab.impresion3d.pro/root/davidaragon-portfolio:latest . - docker push gitlab.impresion3d.pro/root/davidaragon-portfolio:latest + docker push gitlab.impresion3d.pro/root/davidaragon-portfolio:latest \ No newline at end of file