Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi arch java #90

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/java-build-and-publish-ms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,15 +131,17 @@ jobs:
run: |
REPO=$(git config --get remote.origin.url)
DATE=$(date --utc +%FT%TZ)
docker build \
docker buildx create --use
docker buildx build \
--build-arg JAR_FILE=$EXEC_PROJECT/target/*-exec.jar \
--build-arg GIT_HASH=${{ github.sha }} \
--build-arg DATE="$DATE" \
--build-arg GIT_REPO=$REPO \
--build-arg GIT_REF=${{ github.ref }} \
--build-arg VERSION=${{ env.VERSION }} \
--platform linux/amd64,linux/arm64 \
--push \
-t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
echo "::notice::Pushed image $ECR_REPOSITORY:$IMAGE_TAG to $ECR_REGISTRY"
- name: Logout of Amazon ECR
if: always()
Expand Down