Skip to content

Commit

Permalink
add arm image build (#24)
Browse files Browse the repository at this point in the history
* build arm image

* pin sdk version to preview 2 to avoid a bug - dotnet/sdk#28971

* comment
  • Loading branch information
davidgilady authored Nov 9, 2023
1 parent fea6260 commit 100f86c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
Expand Down
4 changes: 3 additions & 1 deletion Quali.Torque.Cli/Dockerfile
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit 100f86c

Please sign in to comment.