Skip to content

High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.

feat: add Docker images to goreleaser + GHCR publishing (#26)

luigiagent4b049d71b35a
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 85f9490a..94884d6a 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -15,6 +15,7 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: write
+ packages: write
steps:
- uses: actions/checkout@v4
with:
@@ -25,6 +26,14 @@ jobs:
with:
go-version: '1.26'
+ - uses: docker/setup-buildx-action@v3
+
+ - uses: docker/login-action@v3
+ with:
+ registry: ghcr.io
+ username: ${{ github.actor }}
+ password: ${{ secrets.GITHUB_TOKEN }}
+
- uses: goreleaser/goreleaser-action@v6
with:
version: latest
diff --git a/.goreleaser.yml b/.goreleaser.yml
index 7c75a33f..2a71cf5d 100644
--- a/.goreleaser.yml
+++ b/.goreleaser.yml
@@ -29,6 +29,38 @@ changelog:
- '^ci:'
- '^chore:'
+dockers:
+ - image_templates:
+ - "ghcr.io/pinchtab/pinchtab:{{ .Version }}-amd64"
+ use: buildx
+ dockerfile: Dockerfile.goreleaser
+ build_flag_templates:
+ - "--platform=linux/amd64"
+ - "--label=org.opencontainers.image.version={{ .Version }}"
+ - "--label=org.opencontainers.image.source=https://github.com/pinchtab/pinchtab"
+ goos: linux
+ goarch: amd64
+ - image_templates:
+ - "ghcr.io/pinchtab/pinchtab:{{ .Version }}-arm64"
+ use: buildx
+ dockerfile: Dockerfile.goreleaser
+ build_flag_templates:
+ - "--platform=linux/arm64"
+ - "--label=org.opencontainers.image.version={{ .Version }}"
+ - "--label=org.opencontainers.image.source=https://github.com/pinchtab/pinchtab"
+ goos: linux
+ goarch: arm64
+
+docker_manifests:
+ - name_template: "ghcr.io/pinchtab/pinchtab:{{ .Version }}"
+ image_templates:
+ - "ghcr.io/pinchtab/pinchtab:{{ .Version }}-amd64"
+ - "ghcr.io/pinchtab/pinchtab:{{ .Version }}-arm64"
+ - name_template: "ghcr.io/pinchtab/pinchtab:latest"
+ image_templates:
+ - "ghcr.io/pinchtab/pinchtab:{{ .Version }}-amd64"
+ - "ghcr.io/pinchtab/pinchtab:{{ .Version }}-arm64"
+
release:
github:
owner: pinchtab
diff --git a/Dockerfile.goreleaser b/Dockerfile.goreleaser
new file mode 100644
index 00000000..f0f020a3
--- /dev/null
+++ b/Dockerfile.goreleaser
@@ -0,0 +1,35 @@
+FROM alpine:latest
+
+LABEL org.opencontainers.image.source="https://github.com/pinchtab/pinchtab"
+LABEL org.opencontainers.image.description="Browser control for AI agents"
+
+RUN apk add --no-cache \
+ chromium \
+ nss \
+ freetype \
+ harfbuzz \
+ ca-certificates \
+ ttf-freefont \
+ dumb-init
+
+RUN adduser -D -g '' pinchtab && \
+ mkdir -p /data && \
+ chown pinchtab:pinchtab /data
+
+COPY pinchtab /usr/local/bin/pinchtab
+
+USER pinchtab
+WORKDIR /data
+
+ENV BRIDGE_BIND=0.0.0.0 \
+ BRIDGE_PORT=9867 \
+ BRIDGE_HEADLESS=true \
+ BRIDGE_STATE_DIR=/data \
+ BRIDGE_PROFILE=/data/chrome-profile \
+ CHROME_BINARY=/usr/bin/chromium-browser \
+ CHROME_FLAGS="--no-sandbox --disable-gpu"
+
+EXPOSE 9867
+
+ENTRYPOINT ["/usr/bin/dumb-init", "--"]
+CMD ["pinchtab"]