Skip to content

53 renew subscriptions #5

53 renew subscriptions

53 renew subscriptions #5

Workflow file for this run

name: identity-grpc
on:
workflow_dispatch:
push:
branches:
- dev
paths:
- SimpleServer/src/Services/Identity/**
- .github/workflows/identity-grpc.yml
pull_request:
branches:
- dev
paths:
- SimpleServer/src/Services/Identity/**
- .github/workflows/identity-grpc.yml
env:
SERVICE: identity.grpc
IMAGE: identity.grpc
jobs:
Linting_And_Build_Service:
name: Lint, build and unit tests
runs-on: ubuntu-latest
if: ${{ github.event_name == 'pull_request' }}
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 7.x
- name: Print Current Directory
run: |
pwd # This command prints the current working directory
ls # This command lists the contents of the current directory
- name: Lint code
working-directory: ./SimpleServer/src/Services/Identity/Identity.Grpc
run: dotnet format --verify-no-changes
- name: Restore dependencies
working-directory: ./SimpleServer/src/Services/Identity/Identity.Grpc
run: dotnet restore
- name: Build
working-directory: ./SimpleServer/src/Services/Identity/Identity.Grpc
run: dotnet build
BuildContainersForPR_Linux:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'pull_request' }}
needs: Linting_And_Build_Service
steps:
- name: Checkout code
uses: actions/[email protected]
- uses: ./.github/workflows/composite/build
with:
service: ${{ env.SERVICE }}
registry_endpoint: ${{ secrets.REGISTRY_ENDPOINT }}
BuildLinux:
runs-on: ubuntu-latest
if: ${{ github.event_name != 'pull_request' }}
steps:
- name: Checkout code
uses: actions/[email protected]
- uses: ./.github/workflows/composite/build-push
with:
service: ${{ env.SERVICE }}
registry_host: ${{ secrets.REGISTRY_HOST }}
registry_endpoint: ${{ secrets.REGISTRY_ENDPOINT }}
image_name: ${{ env.IMAGE }}
registry_username: ${{ secrets.USERNAME }}
registry_password: ${{ secrets.PASSWORD }}