Skip to content

fix(web): make browser pairing reachable on cloud deploy #467

fix(web): make browser pairing reachable on cloud deploy

fix(web): make browser pairing reachable on cloud deploy #467

Workflow file for this run

name: Docker — Build & push
on:
push:
branches:
- master
tags:
- "v[0-9]+.[0-9]+.[0-9]*"
paths:
- "Dockerfile"
- ".dockerignore"
- "package.json"
- "package-lock.json"
- "cli/**"
- "web/**"
- "shared/**"
- "agents/**"
- ".launcher/**"
- "scripts/**"
- "requirements.txt"
- ".github/workflows/docker.yml"
pull_request:
paths:
- "Dockerfile"
- ".dockerignore"
- ".github/workflows/docker.yml"
workflow_dispatch:
env:
REGISTRY: ghcr.io
IMAGE_NAME: leopu00/jht
jobs:
build-and-push:
name: Build & push to GHCR
runs-on: ubuntu-22.04
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to GHCR
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract image metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=raw,value=latest,enable={{is_default_branch}}
- name: Build & push
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max