Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/actions/version-matrix/data/cache-states-beta-oci.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"node:normal": {
"hash": "326d8f05d19439edf63961843990b085817b5fe28c92ebe8327706b661b72485",
"hashEntries": "APIFY_VERSION=3.5.2;CRAWLEE_VERSION=3.15.3;NODE_VERSION=20,22,24"
},
"node:playwright": {
"hash": "1fa77d34223ee8d292cdbdad250b0fd7db3cec6b31af514b9ccbd8d03a33b7d7",
"hashEntries": "APIFY_VERSION=3.5.3;CAMOUFOX_VERSION=0.8.4;CRAWLEE_VERSION=3.15.3;NODE_VERSION=20,22,24;PLAYWRIGHT_VERSION=1.55.0,1.55.1,1.56.0,1.56.1,1.57.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@ const imageNames = [
'node-playwright-camoufox',
] as const;

// Images that require Chrome/Chromium cannot be built for arm64 on Linux
const arm64UnsupportedImages: ReadonlySet<string> = new Set([
'node-playwright',
'node-playwright-chrome',
]);

const matrix = {
include: [] as {
'image-name': (typeof imageNames)[number];
Expand All @@ -83,6 +89,7 @@ const matrix = {
'camoufox-version': string;
'is-latest': 'true' | 'false';
'latest-node-version': string;
'supports-arm64': 'true' | 'false';
}[],
};

Expand All @@ -98,6 +105,7 @@ for (const nodeVersion of supportedNodeVersions) {
'camoufox-version': `^${latestCamoufoxVersion}`,
'is-latest': playwrightVersion === latestPlaywrightVersion ? 'true' : 'false',
'latest-node-version': latestNodeVersion,
'supports-arm64': arm64UnsupportedImages.has(imageName) ? 'false' : 'true',
});
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ const imageNames = [
'python-playwright-camoufox',
] as const;

// Images that require Chrome/Chromium cannot be built for arm64 on Linux
const arm64UnsupportedImages: ReadonlySet<string> = new Set([
'python-playwright',
'python-playwright-chrome',
]);

const matrix = {
include: [] as {
'image-name': (typeof imageNames)[number];
Expand All @@ -76,6 +82,7 @@ const matrix = {
'camoufox-version': string;
'is-latest': 'true' | 'false';
'latest-python-version': string;
'supports-arm64': 'true' | 'false';
}[],
};

Expand All @@ -99,6 +106,7 @@ for (const pythonVersion of supportedPythonVersions) {
'camoufox-version': latestCamoufoxVersion,
'is-latest': playwrightVersion === latestPlaywrightVersion ? 'true' : 'false',
'latest-python-version': latestPythonVersion,
'supports-arm64': arm64UnsupportedImages.has(imageName) ? 'false' : 'true',
});
}
}
Expand Down
22 changes: 19 additions & 3 deletions .github/workflows/release-node-playwright.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build and tag image
- name: Build and tag image for testing
uses: docker/build-push-action@v6
with:
context: ./${{ matrix.image-name }}
Expand All @@ -230,8 +230,12 @@ jobs:
build-args: |
NODE_VERSION=${{ matrix.node-version }}
PLAYWRIGHT_VERSION=${{ format('v{0}-', matrix.playwright-version) }}
platforms: linux/amd64
provenance: false
load: true
tags: ${{ fromJson(steps.prepare-tags.outputs.result).allTags }}
cache-from: type=gha,scope=${{ matrix.image-name }}-${{ matrix.node-version }}-${{ matrix.playwright-version }}
cache-to: type=gha,mode=max,scope=${{ matrix.image-name }}-${{ matrix.node-version }}-${{ matrix.playwright-version }}

- name: Test image
run: docker run ${{ fromJson(steps.prepare-tags.outputs.result).firstImageName }}
Expand All @@ -243,6 +247,18 @@ jobs:
username: ${{ secrets.APIFY_SERVICE_ACCOUNT_DOCKERHUB_USERNAME }}
password: ${{ secrets.APIFY_SERVICE_ACCOUNT_DOCKERHUB_TOKEN }}

- name: Push images
- name: Build and push OCI image
if: github.event_name != 'pull_request'
run: docker push apify/actor-${{ matrix.image-name }} --all-tags
uses: docker/build-push-action@v6
with:
context: ./${{ matrix.image-name }}
file: ./${{ matrix.image-name }}/Dockerfile
build-args: |
NODE_VERSION=${{ matrix.node-version }}
PLAYWRIGHT_VERSION=${{ format('v{0}-', matrix.playwright-version) }}
platforms: ${{ matrix.supports-arm64 == 'true' && 'linux/amd64,linux/arm64' || 'linux/amd64' }}
provenance: true
push: true
tags: ${{ fromJson(steps.prepare-tags.outputs.result).allTags }}
outputs: type=image,oci-mediatypes=true
cache-from: type=gha,scope=${{ matrix.image-name }}-${{ matrix.node-version }}-${{ matrix.playwright-version }}
20 changes: 17 additions & 3 deletions .github/workflows/release-node-puppeteer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -203,14 +203,18 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build and tag image
- name: Build and tag image for testing
uses: docker/build-push-action@v6
with:
context: ./${{ matrix.image-name }}
file: ./${{ matrix.image-name }}/Dockerfile
build-args: NODE_VERSION=${{ matrix.node-version }}
platforms: linux/amd64
provenance: false
load: true
tags: ${{ fromJson(steps.prepare-tags.outputs.result).allTags }}
cache-from: type=gha,scope=${{ matrix.image-name }}-${{ matrix.node-version }}-${{ matrix.puppeteer-version }}
cache-to: type=gha,mode=max,scope=${{ matrix.image-name }}-${{ matrix.node-version }}-${{ matrix.puppeteer-version }}

- name: Test image
run: docker run ${{ fromJson(steps.prepare-tags.outputs.result).firstImageName }}
Expand All @@ -222,6 +226,16 @@ jobs:
username: ${{ secrets.APIFY_SERVICE_ACCOUNT_DOCKERHUB_USERNAME }}
password: ${{ secrets.APIFY_SERVICE_ACCOUNT_DOCKERHUB_TOKEN }}

- name: Push images
- name: Build and push OCI image
if: github.event_name != 'pull_request'
run: docker push apify/actor-${{ matrix.image-name }} --all-tags
uses: docker/build-push-action@v6
with:
context: ./${{ matrix.image-name }}
file: ./${{ matrix.image-name }}/Dockerfile
build-args: NODE_VERSION=${{ matrix.node-version }}
platforms: linux/amd64
provenance: true
push: true
tags: ${{ fromJson(steps.prepare-tags.outputs.result).allTags }}
outputs: type=image,oci-mediatypes=true
cache-from: type=gha,scope=${{ matrix.image-name }}-${{ matrix.node-version }}-${{ matrix.puppeteer-version }}
20 changes: 17 additions & 3 deletions .github/workflows/release-node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -197,14 +197,18 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build and tag image
- name: Build and tag image for testing
uses: docker/build-push-action@v6
with:
context: ./${{ matrix.image-name }}
file: ./${{ matrix.image-name }}/Dockerfile
build-args: NODE_VERSION=${{ matrix.node-version }}
platforms: linux/amd64
provenance: false
load: true
tags: ${{ fromJson(steps.prepare-tags.outputs.result).allTags }}
cache-from: type=gha,scope=${{ matrix.image-name }}-${{ matrix.node-version }}
cache-to: type=gha,mode=max,scope=${{ matrix.image-name }}-${{ matrix.node-version }}

- name: Test image
run: docker run ${{ fromJson(steps.prepare-tags.outputs.result).firstImageName }}
Expand All @@ -216,6 +220,16 @@ jobs:
username: ${{ secrets.APIFY_SERVICE_ACCOUNT_DOCKERHUB_USERNAME }}
password: ${{ secrets.APIFY_SERVICE_ACCOUNT_DOCKERHUB_TOKEN }}

- name: Push images
- name: Build and push OCI image
if: github.event_name != 'pull_request'
run: docker push apify/actor-${{ matrix.image-name }} --all-tags
uses: docker/build-push-action@v6
with:
context: ./${{ matrix.image-name }}
file: ./${{ matrix.image-name }}/Dockerfile
build-args: NODE_VERSION=${{ matrix.node-version }}
platforms: linux/amd64,linux/arm64
provenance: true
push: true
tags: ${{ fromJson(steps.prepare-tags.outputs.result).allTags }}
outputs: type=image,oci-mediatypes=true
cache-from: type=gha,scope=${{ matrix.image-name }}-${{ matrix.node-version }}
23 changes: 20 additions & 3 deletions .github/workflows/release-python-playwright.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build and tag image
- name: Build and tag image for testing
uses: docker/build-push-action@v6
with:
context: ./${{ matrix.image-name }}
Expand All @@ -189,8 +189,12 @@ jobs:
PYTHON_VERSION=${{ matrix.python-version }}
PLAYWRIGHT_VERSION=${{ matrix.playwright-version }}
CAMOUFOX_VERSION=${{ matrix.camoufox-version }}
platforms: linux/amd64
provenance: false
load: true
tags: ${{ fromJson(steps.prepare-tags.outputs.result).allTags }}
cache-from: type=gha,scope=${{ matrix.image-name }}-${{ matrix.python-version }}-${{ matrix.playwright-version }}-${{ matrix.camoufox-version }}
cache-to: type=gha,mode=max,scope=${{ matrix.image-name }}-${{ matrix.python-version }}-${{ matrix.playwright-version }}-${{ matrix.camoufox-version }}

- name: Test image
run: docker run ${{ fromJson(steps.prepare-tags.outputs.result).firstImageName }}
Expand All @@ -202,6 +206,19 @@ jobs:
username: ${{ secrets.APIFY_SERVICE_ACCOUNT_DOCKERHUB_USERNAME }}
password: ${{ secrets.APIFY_SERVICE_ACCOUNT_DOCKERHUB_TOKEN }}

- name: Push images
- name: Build and push OCI image
if: github.event_name != 'pull_request'
run: docker push apify/actor-${{ matrix.image-name }} --all-tags
uses: docker/build-push-action@v6
with:
context: ./${{ matrix.image-name }}
file: ./${{ matrix.image-name }}/Dockerfile
build-args: |
PYTHON_VERSION=${{ matrix.python-version }}
PLAYWRIGHT_VERSION=${{ matrix.playwright-version }}
CAMOUFOX_VERSION=${{ matrix.camoufox-version }}
platforms: ${{ matrix.supports-arm64 == 'true' && 'linux/amd64,linux/arm64' || 'linux/amd64' }}
provenance: true
push: true
tags: ${{ fromJson(steps.prepare-tags.outputs.result).allTags }}
outputs: type=image,oci-mediatypes=true
cache-from: type=gha,scope=${{ matrix.image-name }}-${{ matrix.python-version }}-${{ matrix.playwright-version }}-${{ matrix.camoufox-version }}
22 changes: 19 additions & 3 deletions .github/workflows/release-python-selenium.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -157,16 +157,20 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build and tag image
- name: Build and tag image for testing
uses: docker/build-push-action@v6
with:
context: ./${{ matrix.image-name }}
file: ./${{ matrix.image-name }}/Dockerfile
build-args: |
PYTHON_VERSION=${{ matrix.python-version }}
SELENIUM_VERSION=${{ matrix.selenium-version }}
platforms: linux/amd64
provenance: false
load: true
tags: ${{ fromJson(steps.prepare-tags.outputs.result).allTags }}
cache-from: type=gha,scope=${{ matrix.image-name }}-${{ matrix.python-version }}-${{ matrix.selenium-version }}
cache-to: type=gha,mode=max,scope=${{ matrix.image-name }}-${{ matrix.python-version }}-${{ matrix.selenium-version }}

- name: Test image
run: docker run ${{ fromJson(steps.prepare-tags.outputs.result).firstImageName }}
Expand All @@ -178,6 +182,18 @@ jobs:
username: ${{ secrets.APIFY_SERVICE_ACCOUNT_DOCKERHUB_USERNAME }}
password: ${{ secrets.APIFY_SERVICE_ACCOUNT_DOCKERHUB_TOKEN }}

- name: Push images
- name: Build and push OCI image
if: github.event_name != 'pull_request'
run: docker push apify/actor-${{ matrix.image-name }} --all-tags
uses: docker/build-push-action@v6
with:
context: ./${{ matrix.image-name }}
file: ./${{ matrix.image-name }}/Dockerfile
build-args: |
PYTHON_VERSION=${{ matrix.python-version }}
SELENIUM_VERSION=${{ matrix.selenium-version }}
platforms: linux/amd64
provenance: true
push: true
tags: ${{ fromJson(steps.prepare-tags.outputs.result).allTags }}
outputs: type=image,oci-mediatypes=true
cache-from: type=gha,scope=${{ matrix.image-name }}-${{ matrix.python-version }}-${{ matrix.selenium-version }}
21 changes: 18 additions & 3 deletions .github/workflows/release-python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -156,15 +156,19 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build and tag image
- name: Build and tag image for testing
uses: docker/build-push-action@v6
with:
context: ./${{ matrix.image-name }}
file: ./${{ matrix.image-name }}/Dockerfile
build-args: |
PYTHON_VERSION=${{ matrix.python-version }}
platforms: linux/amd64
provenance: false
load: true
tags: ${{ fromJson(steps.prepare-tags.outputs.result).allTags }}
cache-from: type=gha,scope=${{ matrix.image-name }}-${{ matrix.python-version }}
cache-to: type=gha,mode=max,scope=${{ matrix.image-name }}-${{ matrix.python-version }}

- name: Test image
run: docker run ${{ fromJson(steps.prepare-tags.outputs.result).firstImageName }}
Expand All @@ -176,6 +180,17 @@ jobs:
username: ${{ secrets.APIFY_SERVICE_ACCOUNT_DOCKERHUB_USERNAME }}
password: ${{ secrets.APIFY_SERVICE_ACCOUNT_DOCKERHUB_TOKEN }}

- name: Push images
- name: Build and push OCI image
if: github.event_name != 'pull_request'
run: docker push apify/actor-${{ matrix.image-name }} --all-tags
uses: docker/build-push-action@v6
with:
context: ./${{ matrix.image-name }}
file: ./${{ matrix.image-name }}/Dockerfile
build-args: |
PYTHON_VERSION=${{ matrix.python-version }}
platforms: linux/amd64,linux/arm64
provenance: true
push: true
tags: ${{ fromJson(steps.prepare-tags.outputs.result).allTags }}
outputs: type=image,oci-mediatypes=true
cache-from: type=gha,scope=${{ matrix.image-name }}-${{ matrix.python-version }}
Loading
Loading