Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ARM64v8 support to Dockerfile #95

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
5 changes: 4 additions & 1 deletion .github/workflows/build_container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ env:
IMAGE_NAME: sonarqube-ecocode
IMAGES: |
ghcr.io/${{ github.repository_owner }}/sonarqube-ecocode
PLATFORMS: linux/amd64,linux/arm64/v8

jobs:
Build:
Expand Down Expand Up @@ -65,10 +66,12 @@ jobs:
type=ref,event=pr
type=sha

- name: Publish image
- name: Build and publish image
id: push
uses: docker/build-push-action@v4
with:
context: .
platforms: ${{ env.PLATFORMS }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM maven:3-openjdk-11-slim AS builder
FROM --platform=linux/amd64 maven:3-openjdk-11-slim AS builder

COPY . /usr/src/ecocode

Expand Down
Loading