更新
This commit is contained in:
8
.github/workflows/docker-build-deploy.yml
vendored
8
.github/workflows/docker-build-deploy.yml
vendored
@@ -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
0
app-android/gradlew
vendored
Normal file → Executable file
Reference in New Issue
Block a user