Skip to content

Commit

Permalink
Multi Arch images test
Browse files Browse the repository at this point in the history
  • Loading branch information
ozangunalp committed Feb 28, 2024
1 parent fb23fcd commit d07a72b
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/multi-arch-images.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
---
name: Multi-Arch Images Test

on:
push:
branches: [ "multi-arch-images" ]
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
name: Build Docker Images on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
cache: maven
- name: Set Image Tag
run: |
echo "BUILD_IMAGE_TAG=${GITHUB_REF_NAME}-${GITHUB_SHA}" >> $GITHUB_ENV
- name: Check Docker
run: docker info
- name: Check arch
run: arch
- name: Build with Maven
run: |
mvn -s .github/ci-maven-settings.xml -B clean package -Dnative \
${{ matrix.os == 'macos-latest' && '-Dquarkus.native.additional-build-args=-H:PageSize=65536' || '' }} \
-Dquarkus.native.container-build=true \
-Dquarkus.container-image.build=true \
-Dquarkus.container-image.tag=${{ env.BUILD_IMAGE_TAG }} \
-Dquarkus.container-image.additional-tags=latest-snapshot
- name: Inspect Image
run: docker inspect quay.io/ogunalp/kafka-native:${{ env.BUILD_IMAGE_TAG }}
- name: Integration Tests with Maven
run: |
mvn -s .github/ci-maven-settings.xml -B \
clean verify -Dtest-container \
-Dkafka-native-container-version=${{ env.BUILD_IMAGE_TAG }} \
-Dzookeeper-native-container-version=${{ env.BUILD_IMAGE_TAG }}

0 comments on commit d07a72b

Please sign in to comment.