Skip to content

Commit

Permalink
feat(grid): build multiarch images (#661)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronkvanmeerten authored Nov 7, 2024
1 parent 0bc0e78 commit 08c93b4
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 7 deletions.
33 changes: 27 additions & 6 deletions .github/workflows/grid.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ jobs:
steps:
-
name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Get video resources
uses: robinraju/release-downloader@v1.8
Expand All @@ -42,14 +46,15 @@ jobs:
# uses: docker/setup-buildx-action@v2
-
name: Login to Docker Hub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push chrome stable
uses: docker/build-push-action@v4
uses: docker/build-push-action@v6
with:
platforms: linux/amd64
context: ./doc/grid
push: true
build-args: |
Expand All @@ -58,10 +63,24 @@ jobs:
tags: |
jitsi/selenium-standalone-chrome:latest
jitsi/selenium-standalone-chrome:${{ needs.date.outputs.date }}
-
name: Build and push chromium stable
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64
context: ./doc/grid
push: true
build-args: |
BROWSER=chromium
VERSION=latest
tags: |
jitsi/selenium-standalone-chromium:latest
jitsi/selenium-standalone-chromium:${{ needs.date.outputs.date }}
-
name: Build and push firefox stable
uses: docker/build-push-action@v4
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64
context: ./doc/grid
push: true
build-args: |
Expand All @@ -72,8 +91,9 @@ jobs:
jitsi/selenium-standalone-firefox:${{ needs.date.outputs.date }}
-
name: Build and push chrome beta
uses: docker/build-push-action@v4
uses: docker/build-push-action@v6
with:
platforms: linux/amd64
context: ./doc/grid
push: true
build-args: |
Expand All @@ -84,8 +104,9 @@ jobs:
jitsi/selenium-standalone-chrome:beta-${{ needs.date.outputs.date }}
-
name: Build and push firefox beta
uses: docker/build-push-action@v4
uses: docker/build-push-action@v6
with:
platforms: linux/amd64
context: ./doc/grid
push: true
build-args: |
Expand Down
5 changes: 4 additions & 1 deletion doc/grid/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
ARG BROWSER=chrome
ARG VERSION=latest
FROM selenium/standalone-${BROWSER}:${VERSION}
FROM --platform=$TARGETPLATFORM selenium/standalone-${BROWSER}:${VERSION}
ARG TARGETPLATFORM
ARG BUILDPLATFORM


USER root

Expand Down

0 comments on commit 08c93b4

Please sign in to comment.