mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-12 06:39:02 +08:00
feat(selfhost): deploy a playwright image (#1625)
This commit is contained in:
parent
41897139da
commit
e297cf8a0d
34
.github/workflows/deploy-playwright.yml
vendored
Normal file
34
.github/workflows/deploy-playwright.yml
vendored
Normal 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
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user