Skip to content

Commit

Permalink
Update build-and-push.yaml (trustyai-explainability#230)
Browse files Browse the repository at this point in the history
Updated build & push to use buildx for multi-arch image i.e. s390x & power
  • Loading branch information
modassarrana89 authored Apr 5, 2024
1 parent 3d95529 commit 9569b40
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/build-and-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,16 @@ jobs:
run: sed -i 's#summary="odh-trustyai-service-operator\"#summary="odh-trustyai-service-operator" \\ \n quay.expires-after=7d#' Dockerfile
- name: Log in to Quay
run: docker login -u ${{ secrets.QUAY_ROBOT_USERNAME }} -p ${{ secrets.QUAY_ROBOT_SECRET }} quay.io
- name: Build image
run: docker build -t ${{ env.IMAGE_NAME }}:$TAG .
- name: Push to Quay CI repo
run: docker push ${{ env.IMAGE_NAME }}:$TAG
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build and Push Image
uses: docker/build-push-action@v3
with:
tags: ${{ env.IMAGE_NAME }}:${{ env.TAG }}
platforms: linux/amd64,linux/s390x,linux/ppc64le
push: true

# Create CI Manifests
- name: Set up manifests for CI
Expand Down

0 comments on commit 9569b40

Please sign in to comment.