Skip to content

Commit 2ebdb45

Browse files
committed
ci: separate PR validation from deployment workflow
1 parent 21a1a5e commit 2ebdb45

2 files changed

Lines changed: 25 additions & 2 deletions

File tree

.github/workflows/ci-cd.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@ name: CI
33
on:
44
push:
55
branches: ["main"]
6-
pull_request:
7-
branches: ["main"]
86

97
workflow_dispatch:
108

9+
1110
jobs:
1211
build:
1312
runs-on: ubuntu-latest
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: PR Validation
2+
3+
on:
4+
pull_request:
5+
branches: ["main", "dev"]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v4
14+
15+
- name: Set up Docker Buildx
16+
uses: docker/setup-buildx-action@v3
17+
18+
# Build the Docker image to verify compilation and packaging (push is set to false)
19+
- name: Build Docker image
20+
uses: docker/build-push-action@v3
21+
with:
22+
context: .
23+
file: Dockerfile
24+
push: false

0 commit comments

Comments
 (0)