Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Add action for building base template

Jakub Novak79c53ff7d2ee
diff --git a/.github/workflows/templates.yml b/.github/workflows/templates.yml
new file mode 100644
index 000000000..c34e197ff
--- /dev/null
+++ b/.github/workflows/templates.yml
@@ -0,0 +1,39 @@
+name: Build and push prepared templates
+
+on:
+ push:
+ paths:
+ - 'sandboxes/**'
+ - '.github/workflows/templates.yml'
+ branches:
+ - main
+
+permissions:
+ contents: read
+
+jobs:
+ buildAndPublish:
+ defaults:
+ run:
+ working-directory: ./templates/base
+
+ 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 Docker Hub
+ uses: docker/login-action
+ with:
+ username: ${{ secrets.DOCKERHUB_USERNAME }}
+ password: ${{ secrets.DOCKERHUB_PASSWORD }}
+
+ - name: Build and push
+ uses: docker/build-push-action@v5
+ with:
+ push: true
+ tags: ${{ secrets.DOCKERHUB_USERNAME }}/base:latest