mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
ddbe0fa698
* ci: update workflows * chore: add back translations used on web
49 lines
1.0 KiB
YAML
49 lines
1.0 KiB
YAML
name: Docker-CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- release/*
|
|
paths:
|
|
- frontend/**
|
|
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
- release/*
|
|
paths:
|
|
- frontend/**
|
|
types:
|
|
- opened
|
|
- synchronize
|
|
- reopened
|
|
- unlocked
|
|
- ready_for_review
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build-app:
|
|
if: github.event.pull_request.draft != true
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout source code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Build the app
|
|
shell: bash
|
|
run: |
|
|
set -eu -o pipefail
|
|
cd frontend/scripts/docker-buildfiles
|
|
docker-compose build --no-cache --progress=plain \
|
|
| while read line; do \
|
|
if [[ "$line" =~ ^Step[[:space:]] ]]; then \
|
|
echo "$(date -u '+%H:%M:%S') | $line"; \
|
|
else \
|
|
echo "$line"; \
|
|
fi; \
|
|
done \
|