Skip to content

chose: rename dotnet-build.yml to dotnet.yml #16

chose: rename dotnet-build.yml to dotnet.yml

chose: rename dotnet-build.yml to dotnet.yml #16

Workflow file for this run

on:
push:
branches: ["main"]
jobs:
dynamic:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
strategy:
matrix:
service: [Authentication]
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Log in to Github Container
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set Service Lowercase
id: set_service_lowercase
run: |
service_lowercase=$(echo ${{ matrix.service }} | tr '[:upper:]' '[:lower:]')
echo "::set-output name=service_lowercase::$service_lowercase"
- name: Build and Push to Multiple Registries
uses: docker/[email protected]
with:
context: .
file: ./Source/${{ matrix.service }}/Auction.${{ matrix.service }}.API/dockerfile
push: true
tags: |
ghcr.io/${{ github.actor }}/auction-${{ steps.set_service_lowercase.outputs.service_lowercase }}-api:latest