Update dotnetcore.yml

This commit is contained in:
Gui.H 2021-11-14 23:01:21 +08:00 committed by GitHub
parent 56d3bcd785
commit 7f64d752d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
name: .NET Core
name: Build
on: [push]
env:
@ -18,7 +18,7 @@ jobs:
run: chmod +x ./publish-win.sh && ./publish-win.sh
publish:
name: publish fasttunnel.core
name: publish-core
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
@ -63,8 +63,8 @@ jobs:
# Flag to toggle pushing symbols along with nuget package to the server, disabled by default
# INCLUDE_SYMBOLS: false
publish-api:
name: publish fasttunnel.api
api:
name: publish-api
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
@ -81,35 +81,8 @@ jobs:
with:
# Filepath of the project to be packaged, relative to root of repository
PROJECT_FILE_PATH: FastTunnel.Api/FastTunnel.Api.csproj
# NuGet package id, used for version detection & defaults to project name
# PACKAGE_NAME: Core
# Filepath with version info, relative to root of repository & defaults to PROJECT_FILE_PATH
# VERSION_FILE_PATH: Directory.Build.props
# Regex pattern to extract version info in a capturing group
# VERSION_REGEX: ^\s*<Version>(.*)<\/Version>\s*$
# Useful with external providers like Nerdbank.GitVersioning, ignores VERSION_FILE_PATH & VERSION_REGEX
# VERSION_STATIC: 1.0.0
# Flag to toggle git tagging, enabled by default
# TAG_COMMIT: true
# Format of the git tag, [*] gets replaced with actual version
# TAG_FORMAT: v*
# API key to authenticate with NuGet server
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
# NuGet server uri hosting the packages, defaults to https://api.nuget.org
# NUGET_SOURCE: https://api.nuget.org
# Flag to toggle pushing symbols along with nuget package to the server, disabled by default
# INCLUDE_SYMBOLS: false
publish-docker:
docker:
name: publish-docker
runs-on: ubuntu-latest
steps:
@ -123,13 +96,8 @@ jobs:
- name: Push image
run: |
# 拼接镜像 id这个镜像 id 就是在使用 docker 镜像时 pull 后面的名字。
IMAGE_ID=springhgui/$IMAGE_NAME
# 将所有的大写字母转为小写
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
# 从 GitHub.ref 中取出版本
VERSION=latest
echo IMAGE_ID=$IMAGE_ID