-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (37 loc) · 1.12 KB
/
discount-api.yml
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
# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: Discount API CI
on:
workflow_dispatch:
push:
branches: [ "main" ]
paths:
- src/BuildingBlocks/**
- src/Services/Discount/**
- .github/workflows/discount-api.yml
pull_request:
branches: [ "main" ]
paths:
- src/BuildingBlocks/**
- src/Services/Discount/**
- .github/workflows/discount-api.yml
env:
SERVICE: discount.api
IMAGE: discount.api
ProjectPath: src/Services/Discount/Discount.API
RegistryUsername: behdadkardgar
jobs:
build:
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: Checkout code
uses: actions/checkout@v2
- uses: ./.github/workflows/composite/build-push
with:
service: ${{ env.SERVICE }}
image_name: ${{ env.IMAGE }}
registry_username: ${{ env.RegistryUsername }}
project_path: ${{ env.ProjectPath }}
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN }}