Skip to content

Refactor env variables + add lock to keep the execution order #54

Refactor env variables + add lock to keep the execution order

Refactor env variables + add lock to keep the execution order #54

Workflow file for this run

name: Build and push Code Interpreter template
on:
push:
paths:
- 'template/**'
- '.github/workflows/template.yml'
branches:
- beta
permissions:
contents: read
jobs:
buildAndPublish:
defaults:
run:
working-directory: ./template
name: Build and Push Images
runs-on: ubuntu-20.04
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push to DockerHub
run: |
docker pull ${{ secrets.DOCKERHUB_USERNAME }}/code-interpreter:latest || true
docker buildx build \
--file Dockerfile \
--platform linux/amd64 \
--push \
--tag ${{ secrets.DOCKERHUB_USERNAME }}/code-interpreter:latest .
- name: Install E2B CLI
run: npm install -g @e2b/cli
- name: Build e2b
run: e2b template build
env:
E2B_ACCESS_TOKEN: ${{ secrets.E2B_ACCESS_TOKEN }}