Skip to content

Commit

Permalink
build for armv7 too
Browse files Browse the repository at this point in the history
  • Loading branch information
Athou committed Apr 25, 2023
1 parent c2f3e42 commit 90e2036
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .github/workflows/build.yml
Expand Up @@ -14,13 +14,21 @@ jobs:
with:
fetch-depth: 0

# Setup
- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Set up Java
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
distribution: "temurin"
cache: "maven"

# Build
- name: Build with Maven
run: mvn --batch-mode --update-snapshots verify

Expand All @@ -42,6 +50,7 @@ jobs:
uses: docker/build-push-action@v4
with:
context: .
platforms: linux/amd64,linux/arm/v7
push: ${{ github.ref_type == 'tag' && matrix.java == '8' }}
tags: |
athou/commafeed:latest
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
@@ -1,4 +1,4 @@
FROM openjdk:17-alpine
FROM eclipse-temurin:17-jre

RUN mkdir -p /commafeed/data
VOLUME /commafeed/data
Expand Down

0 comments on commit 90e2036

Please sign in to comment.