Merge pull request #39 from swisschain/LM-3196-api-trading-blocking-f… #54
Workflow file for this run
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
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.400 | |
- name: Build | |
run: dotnet build --configuration Release /p:AssemblyVersion=${GITHUB_REF#refs/tags/service-} | |
- name: Test | |
run: dotnet test --no-build --configuration Release | |
- name: Publish API | |
run: dotnet publish --no-build ./src/HftApi/HftApi.csproj --output ./publish-api --configuration Release | |
- name: Publish worker | |
run: dotnet publish --no-build ./src/HftApi.Worker/HftApi.Worker.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/lykke-hftapi-v2 | |
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/lykke-hftapi-v2-worker | |
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- |