changed docker.yml only triggering workflow on push

This commit is contained in:
2025-10-22 15:08:52 +02:00
parent b6b31659e3
commit 48f140f930

View File

@@ -3,9 +3,8 @@ name: CI/CD Pipeline
on:
workflow_dispatch:
push:
branches: [ main, master, development ]
pull_request:
branches: [ main, master, development ]
branches: [ "development", "main", "staging" ]
tags: [ "v*.*.*" ]
env:
REGISTRY: ghcr.io
@@ -165,7 +164,7 @@ jobs:
- name: Display pushed images
run: |
echo "Docker images pushed successfully!"
echo "📦 Image: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}"
echo "🏷️ Tags: ${{ steps.meta.outputs.tags }}"
echo "🚀 New version: ${{ needs.set-tag.outputs.tag_name }}"
echo "Docker images pushed successfully!"
echo "- Image: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}"
echo "- Tags: ${{ steps.meta.outputs.tags }}"
echo "- New version: ${{ needs.set-tag.outputs.tag_name }}"