Skip to content
Merged
Show file tree
Hide file tree
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
30 changes: 30 additions & 0 deletions .github/workflows/quay_binaries_push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Push binaries to Quay.io, when a new release is created
name: oadp-cli binaries image push

on:
push:
tags:
- 'v*'

# Check out code, podman login, run podman build, push to
jobs:
push-binaries:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Podman login
run: podman login -u ${{ secrets.QUAY_USER }} -p ${{ secrets.QUAY_TOKEN }} quay.io

- name: Podman build and tag
run: |
podman build -f Dockerfile.download \
-t quay.io/konveyor/oadp-cli-binaries:${{ github.ref_name }} \
-t quay.io/konveyor/oadp-cli-binaries:latest .
Comment on lines +22 to +24
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be multiarch build for non-amd cluster.

# Comma-separated platforms work, but require --manifest flag to create multi-arch image
# Using -t with multiple platforms only produces single arch image
podman build --platform linux/amd64,linux/arm64,linux/s390x,linux/ppc64le --manifest myimage .

# Must use 'manifest push' subcommand instead of regular push
# Regular 'podman push' only pushes single arch
podman manifest push myimage docker://registry/myimage:tag

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Working on it


- name: Podman push version tag
run: podman push quay.io/konveyor/oadp-cli-binaries:${{ github.ref_name }}

- name: Podman push latest tag
run: podman push quay.io/konveyor/oadp-cli-binaries:latest
2 changes: 1 addition & 1 deletion Dockerfile.download
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ RUN make release-build && \
rm -rf /root/.cache/go-build && \
rm -rf /go/pkg

FROM registry.access.redhat.com/ubi8/ubi-minimal:latest
FROM registry.access.redhat.com/ubi9/ubi-minimal:latest
Comment thread
rayfordj marked this conversation as resolved.

# Only copy compressed tarballs (much smaller than raw binaries)
COPY --from=builder /archives /archives
Expand Down
Loading