From eff65921e64a5985d8f9fe3e7050282f2a2803b3 Mon Sep 17 00:00:00 2001 From: dmolinari Date: Sun, 15 Jun 2025 23:10:37 -0300 Subject: [PATCH] Nuevo test --- .drone.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.drone.yml b/.drone.yml index daa979d..0168288 100644 --- a/.drone.yml +++ b/.drone.yml @@ -4,9 +4,9 @@ name: Build y Deploy trigger: branch: - - main + - main event: - - push + - push steps: - name: build-and-publish-backend @@ -14,7 +14,8 @@ steps: settings: registry: from_secret: REGISTRY_URL - repo: ${{DRONE_REPO_OWNER}}/${{DRONE_REPO_NAME}}-backend + # Sintaxis corregida para la sustitución de variables + repo: ${DRONE_REPO_OWNER}/${DRONE_REPO_NAME}-backend username: from_secret: GITEA_USER password: @@ -22,14 +23,16 @@ steps: dockerfile: Backend/GestionIntegral.Api/Dockerfile tags: - latest - - ${{DRONE_COMMIT_SHA:0:8}} + # Sintaxis corregida para obtener los primeros 8 caracteres del hash del commit + - ${DRONE_COMMIT_SHA:0:8} - name: build-and-publish-frontend image: plugins/docker settings: registry: from_secret: REGISTRY_URL - repo: ${{DRONE_REPO_OWNER}}/${{DRONE_REPO_NAME}}-frontend + # Sintaxis corregida para la sustitución de variables + repo: ${DRONE_REPO_OWNER}/${DRONE_REPO_NAME}-frontend username: from_secret: GITEA_USER password: @@ -37,7 +40,8 @@ steps: dockerfile: Frontend/Dockerfile tags: - latest - - ${{DRONE_COMMIT_SHA:0:8}} + # Sintaxis corregida para obtener los primeros 8 caracteres del hash del commit + - ${DRONE_COMMIT_SHA:0:8} depends_on: - build-and-publish-backend