diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index be46c97..1a88856 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -5,26 +5,26 @@ on: tags: - 'v*' workflow_dispatch: - + jobs: build_docker_image: runs-on: ubuntu-latest steps: - name: Check out the repo uses: actions/checkout@v4 - + - name: Set up QEMU uses: docker/setup-qemu-action@v3 - + - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - + - name: Log in to Docker Hub uses: docker/login-action@v3 with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} - + - name: Extract metadata (tags, labels) for Docker id: meta uses: docker/metadata-action@v4 @@ -40,8 +40,7 @@ jobs: uses: docker/build-push-action@v5 with: context: . - platforms: linux/amd64 - # platforms: linux/amd64,linux/arm64 + platforms: linux/amd64,linux/arm64 file: ./Quali.Torque.Cli/Dockerfile push: true tags: ${{ steps.meta.outputs.tags }} diff --git a/Quali.Torque.Cli/Dockerfile b/Quali.Torque.Cli/Dockerfile index 57ee3b2..ff834eb 100644 --- a/Quali.Torque.Cli/Dockerfile +++ b/Quali.Torque.Cli/Dockerfile @@ -1,4 +1,6 @@ -FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build-env +# The version is pinned because of a bug (https://github.com/dotnet/sdk/issues/28971#issuecomment-1309328718) +FROM mcr.microsoft.com/dotnet/sdk:7.0.100-preview.2 AS build-env + LABEL org.opencontainers.image.source="https://github.com/QualiNext/torque-cli" WORKDIR /Quali.Torque.Cli