Skip to content

Commit 0083cbb

Browse files
authored
feat: remove CI check on pull requests (#202)
1 parent 7d3b661 commit 0083cbb

File tree

1 file changed

+22
-24
lines changed

1 file changed

+22
-24
lines changed

.github/workflows/ci-cd.yml

Lines changed: 22 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ name: CI/CD Pipeline
33
on:
44
push:
55
branches: [main, develop]
6-
tags: ['v*']
7-
pull_request:
8-
branches: [main, develop]
6+
tags: ["v*"]
97

108
env:
119
REGISTRY: ghcr.io
@@ -19,22 +17,22 @@ jobs:
1917
steps:
2018
- name: Checkout repository
2119
uses: actions/checkout@v4
22-
20+
2321
- name: Setup Node.js
2422
uses: actions/setup-node@v4
2523
with:
26-
node-version: '18'
27-
cache: 'npm'
28-
24+
node-version: "18"
25+
cache: "npm"
26+
2927
- name: Install dependencies
3028
run: npm ci
31-
29+
3230
- name: Run ESLint
3331
run: npm run lint
34-
32+
3533
- name: Run TypeScript checks
3634
run: npm run type-check
37-
35+
3836
# TODO: Uncomment when tests are added
3937
# - name: Run Tests
4038
# run: npm test
@@ -48,38 +46,38 @@ jobs:
4846
steps:
4947
- name: Checkout repository
5048
uses: actions/checkout@v4
51-
49+
5250
- name: Setup Node.js
5351
uses: actions/setup-node@v4
5452
with:
55-
node-version: '18'
56-
cache: 'npm'
57-
53+
node-version: "18"
54+
cache: "npm"
55+
5856
- name: Install dependencies
5957
run: npm ci
60-
58+
6159
- name: Generate build cache key
6260
id: build-cache
6361
run: echo "key=build-${{ hashFiles('**/*.ts', '**/*.tsx', '**/*.js', 'package-lock.json') }}" >> $GITHUB_OUTPUT
64-
62+
6563
- name: Check build cache
6664
id: check-build-cache
6765
uses: actions/cache@v4
6866
with:
6967
path: .next
7068
key: ${{ steps.build-cache.outputs.key }}
71-
69+
7270
- name: Build application
7371
if: steps.check-build-cache.outputs.cache-hit != 'true'
7472
run: npm run build
75-
73+
7674
- name: Cache build output
7775
if: steps.check-build-cache.outputs.cache-hit != 'true'
7876
uses: actions/cache@v4
7977
with:
8078
path: .next
8179
key: ${{ steps.build-cache.outputs.key }}
82-
80+
8381
- name: Upload build artifacts
8482
uses: actions/upload-artifact@v4
8583
with:
@@ -102,23 +100,23 @@ jobs:
102100
steps:
103101
- name: Checkout repository
104102
uses: actions/checkout@v4
105-
103+
106104
- name: Download build artifacts
107105
uses: actions/download-artifact@v4
108106
with:
109107
name: build-output
110108
path: .
111-
109+
112110
- name: Set up Docker Buildx
113111
uses: docker/setup-buildx-action@v3
114-
112+
115113
- name: Login to Container Registry
116114
uses: docker/login-action@v3
117115
with:
118116
registry: ${{ env.REGISTRY }}
119117
username: ${{ github.actor }}
120118
password: ${{ secrets.GITHUB_TOKEN }}
121-
119+
122120
- name: Extract metadata for Docker
123121
id: meta
124122
uses: docker/metadata-action@v5
@@ -129,7 +127,7 @@ jobs:
129127
type=semver,pattern={{version}}
130128
type=sha,format=short
131129
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }}
132-
130+
133131
- name: Build and push Docker image
134132
uses: docker/build-push-action@v5
135133
with:

0 commit comments

Comments
 (0)