@@ -156,74 +156,74 @@ jobs:
156156 run : |
157157 echo "::set-output name=version::$(pnpm pkg get version --workspaces=false | tr -d \\\")"
158158
159- build-docker-image :
160- name : Build Docker Image
161- runs-on : ubuntu-latest
162- needs : [changes, charts-release]
163- if : always() &&
164- !contains(needs.*.result, 'failure') &&
165- !contains(needs.*.result, 'cancelled') &&
166- (needs.changes.outputs.template == 'true' || needs.changes.outputs.charts == 'true')
167- steps :
168- - name : Checkout repository
169- uses : actions/checkout@v3
170- with :
171- fetch-depth : 0
172-
173- - name : Set up Docker Buildx
174- uses : docker/setup-buildx-action@v3
175-
176- - name : Log in to DockerHub
177- uses : docker/login-action@v3
178- with :
179- username : ${{ secrets.DOCKERHUB_USERNAME }}
180- password : ${{ secrets.DOCKERHUB_TOKEN }}
181-
182- - name : Set package version
183- working-directory : ./template
184- run : |
185- if [ -z "${{ needs.charts-release.outputs.version }}" ]; then
186- VERSION=$(cat ../chart_data_extractor/pyproject.toml | grep version | cut -d '"' -f 2)
187- else
188- VERSION=${{ needs.charts-release.outputs.version }}
189- fi
190- echo "Version: $VERSION"
191-
192- sed -i "s/e2b_charts/e2b_charts==${VERSION}/g" requirements.txt
193-
194- - name : Build Docker image
195- uses : docker/build-push-action@v6
196- with :
197- context : ./template
198- push : true
199- platforms : linux/amd64
200- tags : ${{ secrets.DOCKERHUB_USERNAME }}/code-interpreter:latest
201-
202- build-template :
203- name : Build E2B template
204- runs-on : ubuntu-latest
205- needs : [build-docker-image]
206- if : always() &&
207- !contains(needs.*.result, 'failure') &&
208- !contains(needs.*.result, 'cancelled') &&
209- needs.changes.outputs.template == 'true' || needs.changes.outputs.charts == 'true'
210- steps :
211- - name : Checkout repository
212- uses : actions/checkout@v3
213- with :
214- fetch-depth : 0
215- - name : Install E2B CLI
216- run : npm install -g @e2b/cli
217-
218- - name : Build e2b
219- run : e2b template build
220- working-directory : ./template
221- env :
222- E2B_ACCESS_TOKEN : ${{ secrets.E2B_ACCESS_TOKEN }}
159+ # build-docker-image:
160+ # name: Build Docker Image
161+ # runs-on: ubuntu-latest
162+ # needs: [changes, charts-release]
163+ # if: always() &&
164+ # !contains(needs.*.result, 'failure') &&
165+ # !contains(needs.*.result, 'cancelled') &&
166+ # (needs.changes.outputs.template == 'true' || needs.changes.outputs.charts == 'true')
167+ # steps:
168+ # - name: Checkout repository
169+ # uses: actions/checkout@v3
170+ # with:
171+ # fetch-depth: 0
172+
173+ # - name: Set up Docker Buildx
174+ # uses: docker/setup-buildx-action@v3
175+
176+ # - name: Log in to DockerHub
177+ # uses: docker/login-action@v3
178+ # with:
179+ # username: ${{ secrets.DOCKERHUB_USERNAME }}
180+ # password: ${{ secrets.DOCKERHUB_TOKEN }}
181+
182+ # - name: Set package version
183+ # working-directory: ./template
184+ # run: |
185+ # if [ -z "${{ needs.charts-release.outputs.version }}" ]; then
186+ # VERSION=$(cat ../chart_data_extractor/pyproject.toml | grep version | cut -d '"' -f 2)
187+ # else
188+ # VERSION=${{ needs.charts-release.outputs.version }}
189+ # fi
190+ # echo "Version: $VERSION"
191+
192+ # sed -i "s/e2b_charts/e2b_charts==${VERSION}/g" requirements.txt
193+
194+ # - name: Build Docker image
195+ # uses: docker/build-push-action@v6
196+ # with:
197+ # context: ./template
198+ # push: true
199+ # platforms: linux/amd64
200+ # tags: ${{ secrets.DOCKERHUB_USERNAME }}/code-interpreter:latest
201+
202+ # build-template:
203+ # name: Build E2B template
204+ # runs-on: ubuntu-latest
205+ # needs: [build-docker-image]
206+ # if: always() &&
207+ # !contains(needs.*.result, 'failure') &&
208+ # !contains(needs.*.result, 'cancelled') &&
209+ # needs.changes.outputs.template == 'true' || needs.changes.outputs.charts == 'true'
210+ # steps:
211+ # - name: Checkout repository
212+ # uses: actions/checkout@v3
213+ # with:
214+ # fetch-depth: 0
215+ # - name: Install E2B CLI
216+ # run: npm install -g @e2b/cli
217+
218+ # - name: Build e2b
219+ # run: e2b template build
220+ # working-directory: ./template
221+ # env:
222+ # E2B_ACCESS_TOKEN: ${{ secrets.E2B_ACCESS_TOKEN }}
223223
224224 python-tests :
225225 name : Python Tests
226- needs : [changes, build-template]
226+ needs : [changes] # , build-template]
227227 if : always() &&
228228 !contains(needs.*.result, 'failure') &&
229229 !contains(needs.*.result, 'cancelled') &&
@@ -233,7 +233,7 @@ jobs:
233233
234234 js-tests :
235235 name : JS Tests
236- needs : [changes, build-template]
236+ needs : [changes] # , build-template]
237237 if : always() &&
238238 !contains(needs.*.result, 'failure') &&
239239 !contains(needs.*.result, 'cancelled') &&
0 commit comments