Skip to content

Commit 3960fba

Browse files
Add GitHub Actions workflow for building AppFlowy Web
1 parent 8144d85 commit 3960fba

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

.github/workflows/build-web.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Build AppFlowy Web GHCR
2+
3+
on:
4+
workflow_dispatch:
5+
6+
env:
7+
REGISTRY: ghcr.io
8+
9+
jobs:
10+
build-appflowy-web:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: read
14+
packages: write
15+
steps:
16+
- name: Checkout AppFlowy-Web
17+
uses: actions/checkout@v4
18+
with:
19+
repository: AppFlowy-IO/AppFlowy-Web
20+
ref: main
21+
22+
- name: Set up Docker Buildx
23+
uses: docker/setup-buildx-action@v3
24+
25+
- name: Login to GHCR
26+
uses: docker/login-action@v3
27+
with:
28+
registry: ${{ env.REGISTRY }}
29+
username: ${{ github.actor }}
30+
password: ${{ secrets.GITHUB_TOKEN }}
31+
32+
- name: Build and push appflowy_web
33+
uses: docker/build-push-action@v5
34+
with:
35+
context: .
36+
file: ./docker/Dockerfile
37+
push: true
38+
tags: ghcr.io/yodev-dev/appflowy_web:latest
39+
cache-from: type=gha
40+
cache-to: type=gha,mode=max

0 commit comments

Comments
 (0)