Skip to content

Commit

Permalink
Update docker-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanBout authored Dec 3, 2024
1 parent 92d37ff commit 16456ca
Showing 1 changed file with 10 additions and 15 deletions.
25 changes: 10 additions & 15 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,22 +26,17 @@ jobs:
build:
strategy:
matrix:
platform: [
{
arch: "linux/arm64",
dotnet_rid: "linux-arm64",
runner: "buildjet-2vcpu-ubuntu-2204-arm"
},
{
arch: "linux/amd64",
dotnet_rid: "linux-amd64",
runner: "ubuntu-latest"
}
]
include:
- arch: "linux/arm64"
dotnet_rid: "linux-arm64"
runner: "buildjet-2vcpu-ubuntu-2204-arm"
- arch: "linux/amd64"
dotnet_rid: "linux-amd64"
runner: "ubuntu-latest"
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }}-${{ matrix.arch }}
cancel-in-progress: true
runs-on: ${{ matrix.platform.runner }}
runs-on: ${{ matrix.runner }}
permissions:
contents: read
packages: write
Expand Down Expand Up @@ -96,15 +91,15 @@ jobs:
id: build-and-push
env:
BRANCH_NAME: ${{ env.BRANCH_NAME }}
DOTNET_PLATFORM: ${{ matrix.platform.dotnet_rid }}
DOTNET_PLATFORM: ${{ matrix.dotnet_rid }}
uses: docker/build-push-action@v6.10.0
with:
context: .
file: ./SimpleCDN/Dockerfile
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: ${{ matrix.platform.arch }}
platforms: ${{ matrix.arch }}
build-args: |
DOTNET_BUILD_PLATFORM=$DOTNET_PLATFORM
# set version number to the version in the tag name if this is a release
Expand Down

0 comments on commit 16456ca

Please sign in to comment.