Skip to content

Commit

Permalink
Merge pull request #38 from obeone/main
Browse files Browse the repository at this point in the history
Add ARM64v8 support to Dockerfile
  • Loading branch information
zippy1978 authored Apr 5, 2023
2 parents 50aafa8 + d76d2f7 commit 55151db
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
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-mobile
IMAGES: |
ghcr.io/${{ github.repository_owner }}/sonarqube-ecocode-mobile
PLATFORMS: linux/amd64,linux/arm64/v8
jobs:
Build:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -63,10 +64,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.8-openjdk-11-slim AS builder
FROM --platform=linux/amd64 maven:3.8-openjdk-11-slim AS builder

COPY . /usr/src/ecocode

Expand Down

0 comments on commit 55151db

Please sign in to comment.