This commit is contained in:
iammm0
2026-01-27 14:42:05 +08:00
parent e2ee641d41
commit 9f4e0a2bd0
2 changed files with 5 additions and 5 deletions

View File

@@ -3,9 +3,7 @@ name: Docker Build and Deploy
on:
push:
branches:
- main
- master
- develop
- dev/add-agent
paths:
- 'api/**'
- '.github/workflows/**'
@@ -87,7 +85,9 @@ jobs:
if [ "${{ github.ref_name }}" == "main" ] || [ "${{ github.ref_name }}" == "master" ]; then
echo "tag=latest" >> $GITHUB_OUTPUT
else
echo "tag=${{ github.ref_name }}" >> $GITHUB_OUTPUT
# 将分支名中的斜杠替换为破折号,以符合 Docker 标签规范
BRANCH_TAG=$(echo "${{ github.ref_name }}" | sed 's/\//-/g')
echo "tag=$BRANCH_TAG" >> $GITHUB_OUTPUT
fi
- name: Deploy to remote server

0
app-android/gradlew vendored Normal file → Executable file
View File