-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fb23fcd
commit d07a72b
Showing
1 changed file
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |