Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥
TypeScript aiai-agentsai-crawlerai-scrapingai-searchcrawlerdata-extractionhtml-to-markdownllmmarkdownscraperscrapingweb-crawlerweb-dataweb-data-extractionweb-scraperweb-scrapingweb-searchwebscraping
Multi-arch images for playwright and api with linux/arm64 support (#2555)
Eugene Myasyshchev6c295b8fcf62
diff --git a/.github/workflows/deploy-image.yml b/.github/workflows/deploy-image.ymlindex f35efb7de..d52ea864b 100644--- a/.github/workflows/deploy-image.yml+++ b/.github/workflows/deploy-image.yml@@ -21,6 +21,9 @@ jobs:- name: 'Checkout GitHub Action'uses: actions/checkout@main+ - name: Set up QEMU+ uses: docker/setup-qemu-action@v3+- name: 'Set up Docker Buildx'uses: docker/setup-buildx-action@v3@@ -31,11 +34,18 @@ jobs:username: ${{github.actor}}password: ${{secrets.GITHUB_TOKEN}}+ - name: Lowercase Repo Owner+ run: |+ echo "REPO_OWNER=${GITHUB_REPOSITORY_OWNER,,}" >>${GITHUB_ENV}+ env:+ GITHUB_REPOSITORY_OWNER: '${{ github.repository_owner }}'+- name: 'Build and Push Image'uses: docker/build-push-action@v6with:context: ./apps/apipush: true- tags: ghcr.io/firecrawl/firecrawl:latest- cache-from: type=registry,ref=ghcr.io/firecrawl/firecrawl:buildcache- cache-to: type=registry,ref=ghcr.io/firecrawl/firecrawl:buildcache,mode=max\ No newline at end of file+ tags: ghcr.io/${{ env.REPO_OWNER }}/firecrawl:latest+ platforms: linux/amd64,linux/arm64+ cache-from: type=registry,ref=ghcr.io/${{ env.REPO_OWNER }}/firecrawl:buildcache+ cache-to: type=registry,ref=ghcr.io/${{ env.REPO_OWNER }}/firecrawl:buildcache,mode=max\ No newline at end of filediff --git a/.github/workflows/deploy-playwright.yml b/.github/workflows/deploy-playwright.ymlindex 00cb5866f..2f16b79c1 100644--- a/.github/workflows/deploy-playwright.yml+++ b/.github/workflows/deploy-playwright.yml@@ -28,7 +28,16 @@ jobs:username: ${{github.actor}}password: ${{secrets.GITHUB_TOKEN}}+ - name: Set up QEMU+ uses: docker/setup-qemu-action@v3++ - name: Set up Docker Buildx+ uses: docker/setup-buildx-action@v3+- name: 'Build Inventory Image'run: |- docker build . --tag ghcr.io/firecrawl/playwright-service:latest- docker push ghcr.io/firecrawl/playwright-service:latest\ No newline at end of file+ REPO_OWNER=$(echo "${{ github.repository_owner }}" | tr '[:upper:]' '[:lower:]')+ docker buildx build . \+ --platform linux/amd64,linux/arm64 \+ --tag ghcr.io/${REPO_OWNER}/playwright-service:latest \+ --push\ No newline at end of file