Skip to content

Commit 0349102

Browse files
committed
chore: update ci
1 parent 98125bf commit 0349102

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/web_docker.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Build AppFlowy Web Docker Image
22
run-name: >-
3-
Build AppFlowy Web appflowy/appflowy_web:${{ github.event_name == 'workflow_dispatch' && format('{0}{1}', github.event.inputs.tag_name, github.event.inputs.test == 'true' && '_test' || '') || github.ref_name }} ${{ ((github.event_name == 'workflow_dispatch' && github.event.inputs.tag_latest == 'true' && github.event.inputs.test != 'true') || github.event_name == 'push') && 'appflowy/appflowy_web:latest' || '' }}
3+
Build AppFlowy Web appflowy/appflowy_web:${{ github.event_name == 'workflow_dispatch' && format('{0}{1}', github.event.inputs.tag_name, github.event.inputs.test == 'true' && '_test' || '') || github.ref_name }} from ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.appflowy_web_branch || github.ref_name }} ${{ ((github.event_name == 'workflow_dispatch' && github.event.inputs.tag_latest == 'true' && github.event.inputs.test != 'true') || github.event_name == 'push') && 'appflowy/appflowy_web:latest' || '' }}
44
55
on:
66
push:
@@ -14,9 +14,8 @@ on:
1414
required: true
1515
type: string
1616
appflowy_web_branch:
17-
description: 'Branch to build from AppFlowy-Web repo'
17+
description: 'Optional AppFlowy-Web branch, tag, or SHA to build. Leave empty to use the branch selected in Run workflow.'
1818
required: false
19-
default: 'main'
2019
type: string
2120
build_arm64:
2221
description: 'Also build ARM64 images (AMD64 always built)'
@@ -91,6 +90,7 @@ jobs:
9190
echo "### Docker image tag"
9291
echo ""
9392
echo "- Image: \`${IMAGE_TAG}\`"
93+
echo "- Source ref: \`${{ github.event_name == 'workflow_dispatch' && github.event.inputs.appflowy_web_branch || github.ref_name }}\`"
9494
echo "- Platform: \`${{ matrix.job.platform }}\`"
9595
} >> "$GITHUB_STEP_SUMMARY"
9696
@@ -164,6 +164,7 @@ jobs:
164164
{
165165
echo "### Final Docker image names"
166166
echo ""
167+
echo "- Source ref: \`${{ github.event_name == 'workflow_dispatch' && github.event.inputs.appflowy_web_branch || github.ref_name }}\`"
167168
echo "- \`${VERSION_IMAGE}\`"
168169
} >> "$GITHUB_STEP_SUMMARY"
169170

0 commit comments

Comments
 (0)