diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 1d59a5d..52306e0 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -13,7 +13,16 @@ env: jobs: build: - runs-on: ubuntu-latest + strategy: + matrix: + os: + - ubuntu-24.04 + platform: + - amd64 + - arm64 + + runs-on: [ ubuntu-24.04, arm ] + permissions: contents: read packages: write @@ -22,7 +31,7 @@ jobs: id-token: write steps: - - name: Checkout repository + - name: Checkout Repository uses: actions/checkout@v4 - name: Maven Configure @@ -32,7 +41,7 @@ jobs: distribution: 'temurin' - name: Maven Build - run: set -x && mvn -v && mvn clean package -Dglassfish.version=$IMAGE_VERSION && docker image tag glassfish:$IMAGE_VERSION $IMAGE_ID:$IMAGE_VERSION && docker image tag glassfish:$IMAGE_VERSION $IMAGE_ID:latest && docker images | sort + run: set -x && mvn -v && uname -a && mvn clean package -Dglassfish.version=$IMAGE_VERSION && docker image tag glassfish:$IMAGE_VERSION $IMAGE_ID:$IMAGE_VERSION && docker image tag glassfish:$IMAGE_VERSION $IMAGE_ID:latest && docker images | sort - name: Log in to registry run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin