@@ -200,13 +200,13 @@ jobs:
200200
201201 sed -i "s/e2b_charts/e2b_charts==${VERSION}/g" requirements.txt
202202
203- - name : Build Docker image
204- uses : docker/build-push-action@v6
205- with :
206- context : ./template
207- push : true
208- platforms : linux/amd64
209- tags : ${{ secrets.DOCKERHUB_USERNAME }}/code-interpreter :latest
203+ - name : Build and push to DockerHub
204+ working-directory : ./template
205+ run : |
206+ poetry run python build_docker.py | docker buildx build \
207+ --platform linux/amd64 \
208+ --push \
209+ --tag ${{ secrets.DOCKERHUB_USERNAME }}/desktop :latest -f - .
210210
211211 build-template :
212212 name : Build E2B template
@@ -219,14 +219,22 @@ jobs:
219219 steps :
220220 - name : Checkout repository
221221 uses : actions/checkout@v4
222- - name : Install E2B CLI
223- run : npm install -g @e2b/cli
222+ - uses : actions/setup-python@v6
223+ with :
224+ python-version : ' 3.13'
224225
225- - name : Build e2b
226- run : e2b template build
226+ - name : Install development dependencies
227227 working-directory : ./template
228+ run : pip install -r requirements-dev.txt
229+
230+ - name : Build E2B template
231+ id : build-template
232+ working-directory : ./template
233+ run : |
234+ python build_prod.py
228235 env :
229- E2B_ACCESS_TOKEN : ${{ secrets.E2B_ACCESS_TOKEN }}
236+ E2B_API_KEY : ${{ secrets.E2B_API_KEY }}
237+ E2B_DOMAIN : ${{ vars.E2B_DOMAIN }}
230238
231239 python-tests :
232240 name : Python Tests
0 commit comments