mirror of
https://github.com/FastTunnel/FastTunnel.git
synced 2025-02-08 02:39:29 +08:00
Update dotnetcore.yml
This commit is contained in:
parent
56d3bcd785
commit
7f64d752d1
42
.github/workflows/dotnetcore.yml
vendored
42
.github/workflows/dotnetcore.yml
vendored
|
@ -1,4 +1,4 @@
|
||||||
name: .NET Core
|
name: Build
|
||||||
|
|
||||||
on: [push]
|
on: [push]
|
||||||
env:
|
env:
|
||||||
|
@ -18,7 +18,7 @@ jobs:
|
||||||
run: chmod +x ./publish-win.sh && ./publish-win.sh
|
run: chmod +x ./publish-win.sh && ./publish-win.sh
|
||||||
|
|
||||||
publish:
|
publish:
|
||||||
name: publish fasttunnel.core
|
name: publish-core
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
@ -63,8 +63,8 @@ jobs:
|
||||||
# Flag to toggle pushing symbols along with nuget package to the server, disabled by default
|
# Flag to toggle pushing symbols along with nuget package to the server, disabled by default
|
||||||
# INCLUDE_SYMBOLS: false
|
# INCLUDE_SYMBOLS: false
|
||||||
|
|
||||||
publish-api:
|
api:
|
||||||
name: publish fasttunnel.api
|
name: publish-api
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
@ -81,35 +81,8 @@ jobs:
|
||||||
with:
|
with:
|
||||||
# Filepath of the project to be packaged, relative to root of repository
|
# Filepath of the project to be packaged, relative to root of repository
|
||||||
PROJECT_FILE_PATH: FastTunnel.Api/FastTunnel.Api.csproj
|
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_KEY: ${{secrets.NUGET_API_KEY}}
|
||||||
|
docker:
|
||||||
# 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:
|
|
||||||
name: publish-docker
|
name: publish-docker
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
@ -123,13 +96,8 @@ jobs:
|
||||||
|
|
||||||
- name: Push image
|
- name: Push image
|
||||||
run: |
|
run: |
|
||||||
# 拼接镜像 id,这个镜像 id 就是在使用 docker 镜像时 pull 后面的名字。
|
|
||||||
IMAGE_ID=springhgui/$IMAGE_NAME
|
IMAGE_ID=springhgui/$IMAGE_NAME
|
||||||
|
|
||||||
# 将所有的大写字母转为小写
|
|
||||||
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
|
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
|
||||||
|
|
||||||
# 从 GitHub.ref 中取出版本
|
|
||||||
VERSION=latest
|
VERSION=latest
|
||||||
|
|
||||||
echo IMAGE_ID=$IMAGE_ID
|
echo IMAGE_ID=$IMAGE_ID
|
||||||
|
|
Loading…
Reference in New Issue
Block a user