-
Notifications
You must be signed in to change notification settings - Fork 3
69 lines (64 loc) · 2.08 KB
/
admin-api.yml
File metadata and controls
69 lines (64 loc) · 2.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Admin-API
on:
workflow_dispatch:
push:
branches: [ main, dev ]
paths:
- 'csharp/src/AdminAPI/**'
- 'csharp/src/Infrastructure/**'
- 'csharp/src/Infrastructure.Abstractions/**'
- 'csharp/src/Infrastructure.DependencyInjection/**'
- 'csharp/src/Infrastructure.Webhook/**'
- 'csharp/src/Infrastructure.Network.Grpc/**'
- 'csharp/src/Data.Npgsql/**'
- 'csharp/src/Data.Abstractions/**'
- 'csharp/src/Shared.Proto/**'
- 'csharp/src/Shared.Models/**'
- 'csharp/src/Util/**'
- 'csharp/Directory.Build.props'
- 'csharp/Directory.Packages.props'
- 'protos/**'
- '.github/workflows/admin-api.yml'
- '.github/actions/docker/**'
pull_request:
branches: [ main, dev ]
paths:
- 'csharp/src/AdminAPI/**'
- 'csharp/src/Infrastructure/**'
- 'csharp/src/Infrastructure.Abstractions/**'
- 'csharp/src/Infrastructure.DependencyInjection/**'
- 'csharp/src/Infrastructure.Webhook/**'
- 'csharp/src/Infrastructure.Network.Grpc/**'
- 'csharp/src/Data.Npgsql/**'
- 'csharp/src/Data.Abstractions/**'
- 'csharp/src/Shared.Proto/**'
- 'csharp/src/Shared.Models/**'
- 'csharp/src/Util/**'
- 'csharp/Directory.Build.props'
- 'csharp/Directory.Packages.props'
- 'protos/**'
- '.github/workflows/admin-api.yml'
- '.github/actions/docker/**'
release:
types: [published, created]
env:
DOCKER_IMAGE: trainprotocol/solver-admin-api
DOTNET_VERSION: 9
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Docker build and push
id: docker
uses: ./.github/actions/docker
with:
file: csharp/src/AdminAPI/Dockerfile
docker-image: ${{ env.DOCKER_IMAGE }}
dockerhub-username: ${{ secrets.DOCKERHUB_USERNAME }}
dockerhub-token: ${{ secrets.DOCKERHUB_TOKEN }}
build-args: |
DOTNET_VERSION=${{ env.DOTNET_VERSION }}