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:
committed by
GitHub
parent
1b872f1905
commit
03399077d0
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user