Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

feat(api): docker build cache

Gergő Móriczb153e533f861
diff --git a/.github/workflows/deploy-image.yml b/.github/workflows/deploy-image.yml
index af6523b9c..01d291245 100644
--- a/.github/workflows/deploy-image.yml
+++ b/.github/workflows/deploy-image.yml
@@ -21,14 +21,21 @@ jobs:
- name: 'Checkout GitHub Action'
uses: actions/checkout@main
+ - name: 'Set up Docker Buildx'
+ uses: docker/setup-buildx-action@v3
+
- name: 'Login to GitHub Container Registry'
- uses: docker/login-action@v1
+ uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}
- - name: 'Build Inventory Image'
- run: |
- docker build . --tag ghcr.io/mendableai/firecrawl:latest
- docker push ghcr.io/mendableai/firecrawl:latest
\ No newline at end of file
+ - name: 'Build and Push Image'
+ uses: docker/build-push-action@v5
+ with:
+ context: ./apps/api
+ push: true
+ tags: ghcr.io/mendableai/firecrawl:latest
+ cache-from: type=registry,ref=ghcr.io/mendableai/firecrawl:buildcache
+ cache-to: type=registry,ref=ghcr.io/mendableai/firecrawl:buildcache,mode=max
\ No newline at end of file