-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from swisschain/master
Merge Swisschain fork
- Loading branch information
Showing
62 changed files
with
2,259 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: CI dev build | ||
|
||
on: | ||
push: | ||
branches: | ||
- dev | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup .NET Core | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 5.0.101 | ||
- name: Build | ||
run: dotnet build --configuration Release | ||
- name: Test | ||
run: dotnet test --no-build --configuration Release | ||
- name: Publish API | ||
run: dotnet publish --no-build ./src/Lykke.Service.MarketProfile/Lykke.Service.MarketProfile.csproj --output ./publish-api --configuration Release | ||
- name: Publish worker | ||
run: dotnet publish --no-build ./src/Lykke.Job.MarketProfile/Lykke.Job.MarketProfile.csproj --output ./publish-worker --configuration Release | ||
- name: Check API dir | ||
run: ls ./publish-api | ||
- name: Check worker dir | ||
run: ls ./publish-worker | ||
- name: Publish API to Registry | ||
uses: swisschain/Publish-Docker-Github-Action@master | ||
with: | ||
name: swisschains/antares-market-profile-api:dev | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
workdir: ./publish-api | ||
# snapshot: true # use snapshot to push an additional image, which is tagged with {YEAR}{MONTH}{DAY}{HOUR}{MINUTE}{SECOND}{first 6 digits of the git sha} | ||
tag_names: true | ||
- name: Publish worker to Registry | ||
uses: swisschain/Publish-Docker-Github-Action@master | ||
with: | ||
name: swisschains/antares-market-profile-job:dev | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
workdir: ./publish-worker | ||
# snapshot: true # use snapshot to push an additional image, which is tagged with {YEAR}{MONTH}{DAY}{HOUR}{MINUTE}{SECOND}{first 6 digits of the git sha} | ||
tag_names: true | ||
- name: Restart service | ||
uses: swisschain/kube-restart-pods@master | ||
env: | ||
KUBE_CONFIG_DATA: ${{ secrets.LYKKE_DEV_KUBE_CONFIG_DATA }} | ||
NAMESPACE: lykke-service | ||
POD: market-profile | ||
- name: Restart job | ||
uses: swisschain/kube-restart-pods@master | ||
env: | ||
KUBE_CONFIG_DATA: ${{ secrets.LYKKE_DEV_KUBE_CONFIG_DATA }} | ||
NAMESPACE: lykke-jobs | ||
POD: market-profile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: CI test build | ||
|
||
on: | ||
push: | ||
branches: | ||
- test | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup .NET Core | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 5.0.101 | ||
- name: Build | ||
run: dotnet build --configuration Release | ||
- name: Test | ||
run: dotnet test --no-build --configuration Release | ||
- name: Publish API | ||
run: dotnet publish --no-build ./src/Lykke.Service.MarketProfile/Lykke.Service.MarketProfile.csproj --output ./publish-api --configuration Release | ||
- name: Publish worker | ||
run: dotnet publish --no-build ./src/Lykke.Job.MarketProfile/Lykke.Job.MarketProfile.csproj --output ./publish-worker --configuration Release | ||
- name: Check API dir | ||
run: ls ./publish-api | ||
- name: Check worker dir | ||
run: ls ./publish-worker | ||
- name: Publish API to Registry | ||
uses: swisschain/Publish-Docker-Github-Action@master | ||
with: | ||
name: swisschains/antares-market-profile-api:test | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
workdir: ./publish-api | ||
# snapshot: true # use snapshot to push an additional image, which is tagged with {YEAR}{MONTH}{DAY}{HOUR}{MINUTE}{SECOND}{first 6 digits of the git sha} | ||
tag_names: true | ||
- name: Publish worker to Registry | ||
uses: swisschain/Publish-Docker-Github-Action@master | ||
with: | ||
name: swisschains/antares-market-profile-job:test | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
workdir: ./publish-worker | ||
# snapshot: true # use snapshot to push an additional image, which is tagged with {YEAR}{MONTH}{DAY}{HOUR}{MINUTE}{SECOND}{first 6 digits of the git sha} | ||
tag_names: true | ||
- name: Restart service | ||
uses: swisschain/kube-restart-pods@master | ||
env: | ||
KUBE_CONFIG_DATA: ${{ secrets.LYKKE_TEST_KUBE_CONFIG_DATA }} | ||
NAMESPACE: services | ||
POD: market-profile | ||
- name: Restart job | ||
uses: swisschain/kube-restart-pods@master | ||
env: | ||
KUBE_CONFIG_DATA: ${{ secrets.LYKKE_TEST_KUBE_CONFIG_DATA }} | ||
NAMESPACE: lykke-jobs | ||
POD: market-profile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Release Market Profile client nuget | ||
|
||
on: | ||
push: | ||
tags: "api-client-*" | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup .NET Core | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 3.1.100 | ||
- name: Build | ||
run: dotnet build --configuration Release client/Antares.Service.MarketProfile.Client/Antares.Service.MarketProfile.Client.csproj | ||
- name: Create the package | ||
run: dotnet pack --configuration Release client/Antares.Service.MarketProfile.Client /p:Version=${GITHUB_REF#refs/tags/api-client-} | ||
- name: Publish the package to GPR | ||
run: dotnet nuget push client/Antares.Service.MarketProfile.Client/bin/Release/*.nupkg -s "https://api.nuget.org/v3/index.json" -k ${{ secrets.NUGET_TOCKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: Release Service | ||
|
||
on: | ||
push: | ||
tags: "service-*" | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup .NET Core | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 5.0.101 | ||
- name: Build | ||
run: dotnet build --configuration Release | ||
- name: Test | ||
run: dotnet test --no-build --configuration Release | ||
- name: Publish API | ||
run: dotnet publish --no-build ./src/Lykke.Service.MarketProfile/Lykke.Service.MarketProfile.csproj --output ./publish-api --configuration Release | ||
- name: Publish worker | ||
run: dotnet publish --no-build ./src/Lykke.Job.MarketProfile/Lykke.Job.MarketProfile.csproj --output ./publish-worker --configuration Release | ||
- name: Check API dir | ||
run: ls ./publish-api | ||
- name: Check worker dir | ||
run: ls ./publish-worker | ||
- name: Publish API to Registry | ||
uses: swisschain/Publish-Docker-Github-Action@master | ||
with: | ||
name: swisschains/antares-market-profile-api | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
workdir: ./publish-api | ||
# snapshot: true # use snapshot to push an additional image, which is tagged with {YEAR}{MONTH}{DAY}{HOUR}{MINUTE}{SECOND}{first 6 digits of the git sha} | ||
tag_names: true | ||
tag_name_skip: service- | ||
- name: Publish worker to Registry | ||
uses: swisschain/Publish-Docker-Github-Action@master | ||
with: | ||
name: swisschains/antares-market-profile-job | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
workdir: ./publish-worker | ||
# snapshot: true # use snapshot to push an additional image, which is tagged with {YEAR}{MONTH}{DAY}{HOUR}{MINUTE}{SECOND}{first 6 digits of the git sha} | ||
tag_names: true | ||
tag_name_skip: service- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Validate master | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup .NET Core | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 5.0.101 | ||
- name: Build | ||
run: dotnet build --configuration Release | ||
- name: Test | ||
run: dotnet test --no-build --configuration Release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
57 changes: 57 additions & 0 deletions
57
client/Antares.Service.MarketProfile.Client/Antares.Service.MarketProfile.Client.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netstandard2.0</TargetFramework> | ||
<AssemblyVersion>1.0.1.0</AssemblyVersion> | ||
<FileVersion>1.0.1.0</FileVersion> | ||
<Description>Client for Antares.Service.MarketProfile API</Description> | ||
<Authors>Swisschain</Authors> | ||
<Company>Swisschain</Company> | ||
<Product>Antares.Service.MarketProfile</Product> | ||
<PackageLicenseUrl>https://github.com/LykkeCity/Lykke.Service.MarketProfile/blob/master/LICENSE</PackageLicenseUrl> | ||
<PackageProjectUrl>https://github.com/swisschain/Antares.Job.MarketProfile</PackageProjectUrl> | ||
<PackageIconUrl>https://avatars2.githubusercontent.com/u/60782394</PackageIconUrl> | ||
<RepositoryUrl>https://github.com/swisschain/Antares.Job.MarketProfile.git</RepositoryUrl> | ||
<RepositoryType>git</RepositoryType> | ||
<PackageTags>Antares</PackageTags> | ||
<Version>1.0.1</Version> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Lykke.Common" Version="7.5.0" /> | ||
<PackageReference Include="Microsoft.Rest.ClientRuntime" Version="2.3.20" /> | ||
<PackageReference Include="MyNoSqlServer20.DataReader" Version="1.2.18" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\..\contract\Lykke.Job.MarketProfile.Contract\Lykke.Job.MarketProfile.Contract.csproj" PrivateAssets="All" /> | ||
<ProjectReference Include="..\..\src\Lykke.Job.MarketProfile.NoSql\Lykke.Job.MarketProfile.NoSql.csproj" PrivateAssets="All" /> | ||
<ProjectReference Include="..\Lykke.Service.MarketProfile.Client\Antares.Service.MarketProfile.LykkeClient.csproj" PrivateAssets="All" /> | ||
</ItemGroup> | ||
|
||
<!-- | ||
The following solves the problem that 'dotnet pack' does not include the DLLs from referenced projects. | ||
See https://github.com/NuGet/Home/issues/3891 for a description of the problem | ||
and for newer versions / workarounds / built-in methods. | ||
--> | ||
<PropertyGroup> | ||
<TargetsForTfmSpecificBuildOutput> | ||
$(TargetsForTfmSpecificBuildOutput);PackReferencedProjectOutputs | ||
</TargetsForTfmSpecificBuildOutput> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'"> | ||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors> | ||
<WarningsAsErrors /> | ||
</PropertyGroup> | ||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'"> | ||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors> | ||
<WarningsAsErrors /> | ||
</PropertyGroup> | ||
|
||
<Target Name="PackReferencedProjectOutputs" DependsOnTargets="BuildOnlySettings;ResolveReferences"> | ||
<ItemGroup> | ||
<BuildOutputInPackage Include="@(ReferenceCopyLocalPaths->WithMetadataValue('ReferenceSourceTarget', 'ProjectReference'))" /> | ||
</ItemGroup> | ||
</Target> | ||
|
||
</Project> |
Oops, something went wrong.