Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/workflows/CD_linked.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@ name: CD - Deploy Backend then Frontend to AKS
on:
push:
branches: [ main ]

paths:
- 'k8s/**'
- 'backend/**'
- 'frontend/**'
- '.github/workflows/CD_linked.yml'

permissions:
id-token: write
contents: read
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/backend_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@ name: Backend CI - Test, Build and Push Images to ACR
# Trigger the workflow on pushes to the 'main' branch
# You can also add 'pull_request:' to run on PRs
on:
# Manual trigger
workflow_dispatch:
pull_request:
branches: [ main ] # or: [ development ]
paths:
- 'backend/**'
- '.github/workflows/backend_ci.yml'

# Automatically on pushes to main branch
push:
Expand Down Expand Up @@ -111,6 +114,7 @@ jobs:

# Job 2: Build and Push Docker Images (runs only if tests pass)
build_and_push_images:
if: github.event_name == 'push' && startsWith(github.ref, 'refs/heads/main')
runs-on: ubuntu-latest
needs: test_and_lint_backends

Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/frontend_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@
name: Frontend CI - Build & Push Image

on:
# Manual trigger
workflow_dispatch:
pull_request:
branches: [ main ]
paths:
- 'frontend/**'
- '.github/workflows/frontend_ci.yml'

# Automatically on pushes to main branch
push:
Expand Down