Skip to content

Merge PR #67 from behdad088/add-logger-to-all-services #43

Merge PR #67 from behdad088/add-logger-to-all-services

Merge PR #67 from behdad088/add-logger-to-all-services #43

Workflow file for this run

# 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: Catalog API CI
on:
workflow_dispatch:
push:
branches: [ "main" ]
paths:
- src/BuildingBlocks/**
- src/Services/Catalog/**
- .github/workflows/catalog-api.yml
pull_request:
branches: [ "main" ]
paths:
- src/BuildingBlocks/**
- src/Services/Catalog/**
- .github/workflows/catalog-api.yml
env:
SERVICE: catalog.api
IMAGE: catalog.api
ProjectPath: src/Services/Catalog/Catalog.API
ProjectTestPath: src/Services/Catalog/Catalog.API.Tests
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 }}
test_path: ${{ env.ProjectTestPath }}
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN }}