@@ -3,8 +3,8 @@ name: Build and push Desktop template
33on :
44 push :
55 paths :
6- - " template/**"
7- - " .github/workflows/template.yml"
6+ - ' template/**'
7+ - ' .github/workflows/template.yml'
88 branches :
99 - main
1010
2323 - name : Checkout repository
2424 uses : actions/checkout@v3
2525
26+ - name : Set up Python
27+ uses : actions/setup-python@v4
28+ with :
29+ python-version : ' 3.12'
30+
31+ - name : Install and configure Poetry
32+ uses : snok/install-poetry@v1
33+ with :
34+ version : 2.1.1
35+ virtualenvs-create : true
36+ virtualenvs-in-project : true
37+ installer-parallel : true
38+
39+ - name : Install dependencies
40+ run : poetry install
41+
2642 - name : Set up Docker Buildx
2743 uses : docker/setup-buildx-action@v3
2844
@@ -35,16 +51,12 @@ jobs:
3551 - name : Build and push to DockerHub
3652 run : |
3753 docker pull ${{ secrets.DOCKERHUB_USERNAME }}/desktop:latest || true
38- docker buildx build \
39- --file Dockerfile \
54+ poetry run python build_docker.py | docker buildx build \
4055 --platform linux/amd64 \
4156 --push \
42- --tag ${{ secrets.DOCKERHUB_USERNAME }}/desktop:latest .
43-
44- - name : Install E2B CLI
45- run : npm install -g @e2b/cli
57+ --tag ${{ secrets.DOCKERHUB_USERNAME }}/desktop:latest -f - files
4658
47- - name : Build e2b
48- run : e2b template build
59+ - name : Build E2B template
60+ run : poetry run python build_prod.py
4961 env :
50- E2B_ACCESS_TOKEN : ${{ secrets.E2B_ACCESS_TOKEN }}
62+ E2B_API_KEY : ${{ secrets.E2B_API_KEY }}
0 commit comments