Skip to content

Commit

Permalink
fix: Use project dockerfile vs cross dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
redhatrises committed Jul 19, 2023
1 parent 2540e67 commit b8bfdb8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,12 @@ jobs:
username: ${{ secrets.REGISTRY_LOGIN }}
password: ${{ secrets.REGISTRY_PASSWORD }}

- name: Setup Cross Compile Dockerfile
run: sed -e '1 s/\(^FROM\)/FROM --platform=$\{BUILDPLATFORM\}/; t' -e ' 1,// s//FROM --platform=$\{BUILDPLATFORM\}/' Dockerfile > Dockerfile.cross

- name: Build and push
id: build_image_multiarch
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile.cross
file: ./Dockerfile
platforms: linux/arm64,linux/amd64,linux/s390x,linux/ppc64le
push: true
tags: |
Expand Down

0 comments on commit b8bfdb8

Please sign in to comment.