Skip to content

Commit af28dad

Browse files
ci: clean separation - only main branch triggers CI/CD and Docker builds
- Remove develop branch from CI/CD triggers - Dev branch development won't trigger production workflows - Only main branch pushes and version tags trigger builds - PRs to main still get tested for quality assurance
1 parent a0ea5fd commit af28dad

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ name: CI/CD Pipeline
22

33
on:
44
push:
5-
branches: [ main, develop ]
6-
tags: [ 'v*' ]
5+
branches: [ main ] # Only main triggers CI/CD
6+
tags: [ 'v*' ] # Tags trigger Docker builds
77
pull_request:
8-
branches: [ main ]
8+
branches: [ main ] # PRs to main get tested
99

1010
permissions:
1111
contents: write

0 commit comments

Comments
 (0)