Skip to content

Commit 24bd582

Browse files
add a ci step to build the docker image
1 parent a118485 commit 24bd582

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/build.yaml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Build
2+
on:
3+
push:
4+
branches:
5+
- '**'
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: read
12+
13+
steps:
14+
- name: Install Docker Buildx
15+
uses: docker/setup-buildx-action@v2
16+
- name: Set up Python
17+
uses: actions/setup-python@v5
18+
with:
19+
python-version: '3.11'
20+
21+
- name: Install poetry
22+
run: pipx install poetry
23+
24+
- name: Checkout Repo
25+
uses: actions/checkout@v4
26+
27+
- name: Set up cache for Poetry dependencies
28+
uses: actions/cache@v4
29+
with:
30+
path: ~/.cache/pypoetry
31+
key: poetry-${{ hashFiles('app/poetry.lock') }}
32+
33+
- name: Install Python dependencies with Poetry
34+
working-directory: ./app
35+
run: poetry install --no-interaction --no-root
36+
37+
- name: Build Docker image
38+
working-directory: ./app
39+
run: |
40+
docker buildx build \
41+
--platform linux/amd64,linux/arm64 \
42+
.
43+
44+
- name: Run intercom test
45+
run: python app/test_intercom.py

0 commit comments

Comments
 (0)