Skip to content

Commit

Permalink
updated the git actions to push a multi-arch image (#1121)
Browse files Browse the repository at this point in the history
Co-authored-by: Bogdan Mocanu <[email protected]>
  • Loading branch information
arheom and Bogdan Mocanu authored Feb 13, 2024
1 parent e73aa4d commit b5fd7c5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ jobs:
mvn package -Dquarkus.profile=public -DskipTests \
-Dquarkus.quinoa.package-manager-install=false \
-Dquarkus.container-image.build=true \
-Dquarkus.container-image.builder=jib \
-Dquarkus.jib.platforms=linux/amd64,linux/arm64 \
-Dquarkus.jib.base-native-image=quay.io/quarkus/quarkus-micro-image:latest \
-Dquarkus.container-image.push=true \
-Dquarkus.container-image.image=${{ env.REGISTRY }}/${GITHUB_REPOSITORY}:${{ env.TAG }} \
-Dquarkus.container-image.username=${{ github.actor }} \
Expand Down
17 changes: 10 additions & 7 deletions .github/workflows/docker-devmode.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,28 @@ env:
TAG: 4.3.1

jobs:
build:
docker:

runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to the Container registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push Docker image
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: ./karavan-web/docker
platforms: linux/amd64,linux/arm64
file: karavan-web/docker/Dockerfile.devmode
push: true
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.TAG }}
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.TAG }}

0 comments on commit b5fd7c5

Please sign in to comment.