File tree Expand file tree Collapse file tree 5 files changed +51
-2
lines changed Expand file tree Collapse file tree 5 files changed +51
-2
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ concurrency:
15
15
16
16
jobs :
17
17
test :
18
+ if : false
18
19
name : API Tests
19
20
runs-on : ubuntu-latest
20
21
strategy :
Original file line number Diff line number Diff line change
1
+ name : Build API docker image
2
+
3
+ on :
4
+ pull_request :
5
+ branches :
6
+ - " main"
7
+ paths :
8
+ - api/Dockerfile
9
+ - web/Dockerfile
10
+
11
+ concurrency :
12
+ group : docker-build-${{ github.head_ref || github.run_id }}
13
+ cancel-in-progress : true
14
+
15
+ jobs :
16
+ build-docker :
17
+ runs-on : ubuntu-latest
18
+ strategy :
19
+ matrix :
20
+ include :
21
+ - service_name : " api-amd64"
22
+ platform : linux/amd64
23
+ context : " api"
24
+ - service_name : " api-arm64"
25
+ platform : linux/arm64
26
+ context : " api"
27
+ - service_name : " web-amd64"
28
+ platform : linux/amd64
29
+ context : " web"
30
+ - service_name : " web-arm64"
31
+ platform : linux/arm64
32
+ context : " web"
33
+ steps :
34
+ # - name: Set up QEMU
35
+ # uses: docker/setup-qemu-action@v3
36
+
37
+ - name : Set up Docker Buildx
38
+ uses : docker/setup-buildx-action@v3
39
+
40
+ - name : Build Docker Image
41
+ uses : docker/build-push-action@v6
42
+ with :
43
+ push : false
44
+ context : " {{defaultContext}}:${{ matrix.context }}"
45
+ platforms : ${{ matrix.platform }}
46
+ cache-from : type=gha
47
+ cache-to : type=gha,mode=max
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ concurrency:
11
11
12
12
jobs :
13
13
python-style :
14
+ if : false
14
15
name : Python Style
15
16
runs-on : ubuntu-latest
16
17
51
52
web-style :
52
53
name : Web Style
53
54
runs-on : ubuntu-latest
55
+ if : false
54
56
defaults :
55
57
run :
56
58
working-directory : ./web
83
85
84
86
85
87
superlinter :
88
+ if : false
86
89
name : SuperLinter
87
90
runs-on : ubuntu-latest
88
91
Original file line number Diff line number Diff line change @@ -76,7 +76,6 @@ COPY . /app/api/
76
76
COPY docker/entrypoint.sh /entrypoint.sh
77
77
RUN chmod +x /entrypoint.sh
78
78
79
-
80
79
ARG COMMIT_SHA
81
80
ENV COMMIT_SHA=${COMMIT_SHA}
82
81
Original file line number Diff line number Diff line change @@ -63,7 +63,6 @@ RUN yarn global add pm2 \
63
63
&& chown -R 1001:0 /.pm2 /app/web \
64
64
&& chmod -R g=u /.pm2 /app/web
65
65
66
-
67
66
ARG COMMIT_SHA
68
67
ENV COMMIT_SHA=${COMMIT_SHA}
69
68
You can’t perform that action at this time.
0 commit comments