Skip to content

Commit 619c10d

Browse files
committed
initial commit, .deb files for chrome and chromium 91
0 parents  commit 619c10d

File tree

6 files changed

+68
-0
lines changed

6 files changed

+68
-0
lines changed

.github/workflows/release.yaml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Publish Docker image
2+
on:
3+
release:
4+
types: [published]
5+
6+
jobs:
7+
push_to_registries:
8+
name: Build x86 and ARM Images and push to Dockerhub
9+
runs-on: ubuntu-latest
10+
steps:
11+
-
12+
name: Check out the repo
13+
uses: actions/checkout@v2
14+
15+
-
16+
name: Prepare
17+
id: prep
18+
run: |
19+
DOCKER_IMAGE=webrecorder/browsertrix-browser-base
20+
VERSION=edge
21+
if [[ $GITHUB_REF == refs/tags/* ]]; then
22+
VERSION=${GITHUB_REF#refs/tags/}
23+
elif [[ $GITHUB_REF == refs/heads/* ]]; then
24+
VERSION=$(echo ${GITHUB_REF#refs/heads/} | sed -r 's#/+#-#g')
25+
elif [[ $GITHUB_REF == refs/pull/* ]]; then
26+
VERSION=pr-${{ github.event.number }}
27+
fi
28+
TAGS="${DOCKER_IMAGE}:${VERSION},${DOCKER_IMAGE}:latest"
29+
echo ::set-output name=tags::${TAGS}
30+
-
31+
name: Set up QEMU
32+
uses: docker/setup-qemu-action@v1
33+
-
34+
name: Set up Docker Buildx
35+
uses: docker/setup-buildx-action@v1
36+
-
37+
name: Login to DockerHub
38+
uses: docker/login-action@v1
39+
with:
40+
username: ${{ secrets.DOCKER_USERNAME }}
41+
password: ${{ secrets.DOCKER_PASSWORD }}
42+
-
43+
name: Build and push
44+
id: docker_build
45+
uses: docker/build-push-action@v2
46+
with:
47+
context: .
48+
push: true
49+
tags: ${{ steps.prep.outputs.tags }}
50+
platforms: "linux/amd64,linux/arm64"
51+
-
52+
name: Image digest
53+
run: echo ${{ steps.docker_build.outputs.digest }}
54+

Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM scratch
2+
3+
ARG TARGETPLATFORM
4+
5+
#RUN echo "copying from $TARGETPLATFORM"
6+
7+
COPY $TARGETPLATFORM/*.deb /deb/
8+

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Base Browser for Browsertrix
2+
3+
This repository contains the base platform-specific deb files for Browsertrix Crawler builds.
4+
5+
The `.deb` files are placed in platform-specific directories, `linux/amd64` and `linux/arm64` to support
6+
builds for those platforms. Chromium is used for ARM64 while Chrome is used for amd64 builds.
79.7 MB
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)