This repository was archived by the owner on Apr 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 40
51 lines (44 loc) · 1.51 KB
/
result-processing.api.yml
File metadata and controls
51 lines (44 loc) · 1.51 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
name: ResultProcessing.API
on:
push:
paths:
- "src/Services/ResultProcessing/**"
- ".github/workflows/result-processing.api.yml"
- "src/Libraries/OpenTelemetry/**"
- "build/dotnet/**"
- "src/Directory.Build.props"
- "docker-compose.yml"
- "docker-compose.override.yml"
- "docker-compose.dcproj"
- "docker-compose-test.yml"
- "docker-compose-test.override.yml"
pull_request:
paths:
- "src/Services/ResultProcessing/**"
- ".github/workflows/result-processing.api.yml"
- "src/Libraries/OpenTelemetry/**"
- "build/dotnet/**"
- "src/Directory.Build.props"
- "docker-compose.yml"
- "docker-compose.override.yml"
- "docker-compose.dcproj"
- "docker-compose-test.yml"
- "docker-compose-test.override.yml"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: set image tag
run: echo "TAG=$(git tag --points-at HEAD | cut -c 2-4)" >> $GITHUB_ENV
- name: build
run: docker-compose build resultprocessing.api
- uses: azure/docker-login@v1
if: startsWith(github.ref, 'refs/tags') || github.ref == 'refs/heads/master'
with:
login-server: index.docker.io
username: ${{ secrets.DOCKERIO_USERNAME }}
password: ${{ secrets.DOCKERIO_PASSWORD }}
- name: push image
if: startsWith(github.ref, 'refs/tags') || github.ref == 'refs/heads/master'
run: docker-compose push resultprocessing.api