Skip to content

chore(deps): update dependency coverlet.collector to v10 #779

chore(deps): update dependency coverlet.collector to v10

chore(deps): update dependency coverlet.collector to v10 #779

name: Build Multiscaler - docker BuildX
on:
push:
branches: [main]
tags:
- 'v*'
pull_request:
branches: [main]
workflow_dispatch:
jobs:
run-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: 10.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore -c Release
- name: Test
run: dotnet test --no-build -c Release --verbosity normal
multiarch-build:
runs-on: ubuntu-latest
concurrency:
group: multiarch-build-${{ github.ref_name }}
cancel-in-progress: true
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v7
- name: Docker meta
id: meta
uses: docker/metadata-action@v6
with:
images: docker.io/ofcoursedude/github-actions-runner
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=raw,value=latest,enable=${{ !contains(github.ref, '-') }}
type=raw,value=latest-preview,enable=${{ contains(github.ref, '-') }}
# Also build for PRs and main commits to ensure cache is hot, but we only use sha/ref tags for those if we were to push
# But since we don't push, these tags are just for local build cache/verification
type=ref,event=branch
type=ref,event=pr
type=sha
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
- name: Login to DockerHub
if: startsWith(github.ref, 'refs/tags/v')
uses: docker/login-action@v4
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v7
with:
context: .
file: Dockerfile
pull: true
# Only push if it is a tag starting with 'v'
push: ${{ startsWith(github.ref, 'refs/tags/v') }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64,linux/arm64
cache-from: type=gha
cache-to: type=gha,mode=max