Skip to content

Commit d132003

Browse files
committed
update
1 parent 2a5c5a4 commit d132003

File tree

5 files changed

+51
-2
lines changed

5 files changed

+51
-2
lines changed

.github/workflows/api-tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ concurrency:
1515

1616
jobs:
1717
test:
18+
if: false
1819
name: API Tests
1920
runs-on: ubuntu-latest
2021
strategy:

.github/workflows/docker-build.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
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

.github/workflows/style.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ concurrency:
1111

1212
jobs:
1313
python-style:
14+
if: false
1415
name: Python Style
1516
runs-on: ubuntu-latest
1617

@@ -51,6 +52,7 @@ jobs:
5152
web-style:
5253
name: Web Style
5354
runs-on: ubuntu-latest
55+
if: false
5456
defaults:
5557
run:
5658
working-directory: ./web
@@ -83,6 +85,7 @@ jobs:
8385

8486

8587
superlinter:
88+
if: false
8689
name: SuperLinter
8790
runs-on: ubuntu-latest
8891

api/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ COPY . /app/api/
7676
COPY docker/entrypoint.sh /entrypoint.sh
7777
RUN chmod +x /entrypoint.sh
7878

79-
8079
ARG COMMIT_SHA
8180
ENV COMMIT_SHA=${COMMIT_SHA}
8281

web/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ RUN yarn global add pm2 \
6363
&& chown -R 1001:0 /.pm2 /app/web \
6464
&& chmod -R g=u /.pm2 /app/web
6565

66-
6766
ARG COMMIT_SHA
6867
ENV COMMIT_SHA=${COMMIT_SHA}
6968

0 commit comments

Comments
 (0)