feat(selfhost): deploy a playwright image (#1625)

This commit is contained in:
Gergő Móricz 2025-06-03 19:19:08 +02:00 committed by GitHub
parent 41897139da
commit e297cf8a0d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 37 additions and 0 deletions

34
.github/workflows/deploy-playwright.yml vendored Normal file
View File

@ -0,0 +1,34 @@
name: Deploy Playwright to GHCR
env:
DOTNET_VERSION: '6.0.x'
on:
push:
branches:
- main
paths:
- apps/playwright-service-ts/**
workflow_dispatch:
jobs:
push-app-image:
runs-on: ubuntu-latest
defaults:
run:
working-directory: './apps/playwright-service-ts'
steps:
- name: 'Checkout GitHub Action'
uses: actions/checkout@main
- name: 'Login to GitHub Container Registry'
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}
- name: 'Build Inventory Image'
run: |
docker build . --tag ghcr.io/mendableai/playwright-service:latest
docker push ghcr.io/mendableai/playwright-service:latest

View File

@ -46,6 +46,9 @@ x-common-env: &common-env
services:
playwright-service:
# NOTE: If you don't want to build the service locally,
# uncomment the build: statement and comment out the image: statement
# image: ghcr.io/mendableai/playwright-service:latest
build: apps/playwright-service-ts
environment:
PORT: 3000