Skip to content

Update OpenTelemetry configuration and SQL Server connection string #116

Update OpenTelemetry configuration and SQL Server connection string

Update OpenTelemetry configuration and SQL Server connection string #116

name: GitHub Packages demo
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login GitHub Packages
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Short the sha to 7 characters only
id: vars
run: echo ::set-output name=tag::$(echo ${GITHUB_SHA::7})
- uses: docker/build-push-action@v3
with:
context: .
# platforms: linux/amd64,linux/arm64 https://github.com/dotnet/core/blob/main/release-notes/7.0/supported-os.md#qemu https://github.com/NuGet/Home/issues/12227 https://github.com/dotnet/sdk/issues/28971
platforms: linux/amd64
push: true
tags: ghcr.io/0gis0/tour-of-heroes-dotnet-api/tour-of-heroes-api:${{ steps.vars.outputs.tag }}