Separate Docker workflows by branch and remove push on non-release branches

Agent-Logs-Url: https://github.com/dsaub/proyecto-final/sessions/3c214772-f4aa-46da-8791-a049cb3ca666

Co-authored-by: dsaub <54474838+dsaub@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-04-20 11:43:26 +00:00
committed by GitHub
parent 1b872f1905
commit 03399077d0
2 changed files with 49 additions and 2 deletions
+3 -2
View File
@@ -3,7 +3,8 @@ name: Build and Push Docker Image
on:
push:
branches:
- '**' # Esto aplica para cualquier rama
- development
- latest
jobs:
test:
@@ -56,4 +57,4 @@ jobs:
context: .
push: true
# Sanitizamos el nombre de la rama (reemplazamos / por -)
tags: ghcr.io/dsaub/proyecto-mvc:${{ env.IMAGE_TAG }}
tags: ghcr.io/dsaub/proyecto-mvc:${{ env.IMAGE_TAG }}