Skip to content

Adding Support for FromEnv properties for Connections #122

Adding Support for FromEnv properties for Connections

Adding Support for FromEnv properties for Connections #122

Workflow file for this run

name: Pull request build
on:
pull_request:
branches:
- main
env:
VERSION_TAG: experimental
jobs:
build:
name: Build
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup dotnet environment
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8
- name: Install dependencies
run: dotnet restore src
- name: Build solution
run: dotnet build src --configuration Release --no-restore
- name: Run unit tests
run: dotnet test src --no-restore
- name: Build Docker image for order-generator
uses: docker/build-push-action@v6
with:
file: ./src/Scaler.Demo/OrderGenerator/Dockerfile
tags: cosmosdb-order-generator:${{ env.VERSION_TAG }}
- name: Build Docker image for order-processor
uses: docker/build-push-action@v6
with:
file: ./src/Scaler.Demo/OrderProcessor/Dockerfile
tags: cosmosdb-order-processor:${{ env.VERSION_TAG }}
- name: Build Docker image for scaler
uses: docker/build-push-action@v6
with:
file: ./src/Scaler/Dockerfile
tags: cosmosdb-scaler:${{ env.VERSION_TAG }}