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

✨ build multi-arch index image #319

Merged
merged 1 commit into from
Jun 4, 2024
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
18 changes: 13 additions & 5 deletions .github/workflows/march-image-build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,22 @@ jobs:
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: Build index
- name: Generate Operator Index Dockerfile
run: |
CONTAINER_RUNTIME=podman \
CATALOG_IMG=quay.io/konveyor/tackle2-operator-index:latest \
BUNDLE_IMG=quay.io/konveyor/tackle2-operator-bundle:latest \
make catalog-build
make catalog-index
if: ${{ github.ref == 'refs/heads/main' }}

- name: Push index
run: podman push quay.io/konveyor/tackle2-operator-index:latest --creds=${{ secrets.QUAY_PUBLISH_ROBOT }}:${{ secrets.QUAY_PUBLISH_TOKEN }}
if: ${{ github.ref == 'refs/heads/main' }}
- name: Build Operator Index
uses: konveyor/release-tools/build-push-quay@main
with:
architectures: "amd64 arm64"
containerfile: "./index.Dockerfile"
image_name: "tackle2-operator-index"
image_namespace: "konveyor"
image_registry: "quay.io"
quay_publish_robot: ${{ secrets.QUAY_PUBLISH_ROBOT }}
quay_publish_token: ${{ secrets.QUAY_PUBLISH_TOKEN }}
ref: ${{ github.ref }}
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,11 @@ endif
catalog-build: opm ## Build a catalog image.
$(OPM) index add --container-tool $(CONTAINER_RUNTIME) --mode semver --tag $(CATALOG_IMG) --bundles $(BUNDLE_IMGS) $(FROM_INDEX_OPT)

# Only generate an index Dockerfile so we can create a multi-arch index
.PHONY: catalog-index
catalog-index: opm ## Generate a catalog image dockerfile.
$(OPM) index add --container-tool $(CONTAINER_RUNTIME) --mode semver --tag $(CATALOG_IMG) --bundles $(BUNDLE_IMGS) $(FROM_INDEX_OPT) --generate

# Push the catalog image.
.PHONY: catalog-push
catalog-push: ## Push a catalog image.
Expand Down
Loading