Skip to content

Commit 95a4840

Browse files
committed
fix(ci): Pass context in matrix
1 parent c27b4dd commit 95a4840

File tree

2 files changed

+5
-31
lines changed

2 files changed

+5
-31
lines changed

.github/workflows/ci.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,13 @@ jobs:
1818
include:
1919
- image: frontend
2020
path: ./frontend.dockerfile
21+
context: .
2122
- image: backend
2223
path: ./backend/Dockerfile
24+
context: ./backend
2325
- image: media
2426
path: ./media/Dockerfile
27+
context: ./media
2528

2629
steps:
2730
- uses: actions/checkout@v4
@@ -46,8 +49,7 @@ jobs:
4649
uses: docker/build-push-action@v6
4750
with:
4851
platforms: linux/amd64
49-
context: .
5052
push: true
51-
file: ${{ matrix.path}}
53+
file: ${{ matrix.path }}
54+
context: ${{ matrix.context }}
5255
tags: ${{ steps.vars.outputs.tag }}
53-

nginx.conf

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -7,33 +7,5 @@ server {
77
location / {
88
try_files $uri $uri/ /index.html ;
99
}
10-
11-
location /graphql {
12-
proxy_pass http://backend:3000/graphql ;
13-
14-
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for ;
15-
proxy_set_header Host $host ;
16-
proxy_set_header Upgrade $http_upgrade ;
17-
proxy_set_header Connection 'upgrade' ;
18-
proxy_cache_bypass $http_upgrade ;
19-
20-
}
21-
22-
location /api/search {
23-
rewrite ^/api/search(.*)$ /$1 break;
24-
proxy_pass http://search:7700;
25-
}
26-
27-
location /api/media {
28-
client_max_body_size 30m;
29-
30-
rewrite ^/api/(.*)$ /$1 break;
31-
proxy_pass http://media:3001;
32-
}
33-
34-
location /cdn {
35-
rewrite ^/cdn/(.*)$ /$1 break;
36-
proxy_pass http://s3:9000;
37-
}
3810
}
3911

0 commit comments

Comments
 (0)