Skip to content

Crawlee—A web scraping and browser automation library for Node.js to build reliable crawlers. In JavaScript and TypeScript. Extract data for AI, LLMs, RAG, or GPTs. Download HTML, PDF, JPG, PNG, and other files from websites. Works with Puppeteer, Playwright, Cheerio, JSDOM, and raw HTTP. Both headful and headless mode. With proxy rotation.

chore(ci): restore Docker image dispatch, gated to master

Martin Adámekac4113063da6
diff --git a/.github/workflows/test-ci.yml b/.github/workflows/test-ci.yml
index 406b3cb02..be9381f18 100644
--- a/.github/workflows/test-ci.yml
+++ b/.github/workflows/test-ci.yml
@@ -286,3 +286,26 @@ jobs:
"ref": "${{ steps.commit.outputs.commit_long_sha || github.sha }}",
"dist-tag": "v4"
}
+
+ # Docker image builds are only published off master; gated here so this block
+ # carries cleanly to master when v4 is integrated, without firing on v4 pushes.
+ - name: Collect versions for Docker images
+ id: versions
+ if: github.ref == 'refs/heads/master'
+ run: |
+ crawlee=`node -p "require('./packages/crawlee/package.json').version"`
+ echo "crawlee=$crawlee" | tee -a $GITHUB_OUTPUT
+
+ - name: Trigger Docker image builds
+ uses: peter-evans/repository-dispatch@v4
+ # Trigger next images only if we have something new pushed
+ if: github.ref == 'refs/heads/master' && steps.changed-packages.outputs.changed_packages != '0'
+ with:
+ token: ${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }}
+ repository: apify/apify-actor-docker
+ event-type: build-node-images
+ client-payload: >
+ {
+ "crawlee_version": "${{ steps.versions.outputs.crawlee }}",
+ "release_tag": "beta"
+ }