Build image for arm64 too #58
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
name: Build Docker image | |
on: | |
push: | |
branches: | |
- master | |
env: | |
JAVA_VERSION: 17 | |
jobs: | |
docker: | |
name: Push to GitHub Container Registry | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Set up JDK | |
uses: "actions/setup-java@v1" | |
with: | |
java-version: ${{ env.JAVA_VERSION }} | |
- name: Checkout | |
uses: "actions/checkout@v2" | |
- name: "Login to ghcr.io" | |
uses: "docker/#-action@v1" | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and Publish Docker Image | |
run: mvn package jib:build |