Skip to content

Add Docker build and push workflows for PRs and releases#97

Merged
achandrasekar merged 2 commits into
kubernetes-sigs:mainfrom
wangchen615:main
May 29, 2025
Merged

Add Docker build and push workflows for PRs and releases#97
achandrasekar merged 2 commits into
kubernetes-sigs:mainfrom
wangchen615:main

Conversation

@wangchen615
Copy link
Copy Markdown
Contributor

@wangchen615 wangchen615 commented May 29, 2025

This PR implements automated Docker image publishing (to quay.io/inference-perf) for both PR merges and releases.

In detail, the changes include:

  • A new workflow (in .github/workflows/docker‑build.yml) that triggers on PR merges (to main) and builds (and pushes) a Docker image (tagged with the PR number and “latest” for the main branch).
  • An update to the release workflow (in .github/workflows/release.yml) so that (on a version tag) a Docker image is also built and pushed (tagged with the release version and “latest”).
  • Both workflows use GitHub Actions’ caching (via “cache‑from” and “cache‑to”) for faster builds.

Required Secrets:
QUAY_USERNAME (your quay.io username)
QUAY_PASSWORD (your quay.io password or token)

Testing:
[x] Verified that the Docker image builds successfully (and is amd64).
[x] Tested locally (using Podman).
[x] (Note: The quay.io repository (quay.io/inference‑perf) must be created before the first push.)

Pull this container with the following Docker command:

docker pull quay.io/inference-perf/inference-perf:latest

Closes #85

@wangchen615 wangchen615 self-assigned this May 29, 2025
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: wangchen615

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. approved Indicates a PR has been approved by an approver from all required OWNERS files. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels May 29, 2025
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR automates Docker image publishing for both PR merges and release events by adding workflows that build and push Docker images to quay.io/inference‑perf.

  • Added a new workflow (.github/workflows/docker-build.yml) to trigger a Docker build and push when a PR is merged into main.
  • Updated the release workflow (.github/workflows/release.yml) to include a Docker job that builds and pushes an image tagged with the release version and "latest".

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
.github/workflows/release.yml Added a Docker job to build and push images following a release.
.github/workflows/docker-build.yml Introduced a workflow to trigger Docker image build/push on PR merges to main.

Comment thread .github/workflows/docker-build.yml Outdated
@wangchen615 wangchen615 added this to the v0.1.0 milestone May 29, 2025
@achandrasekar
Copy link
Copy Markdown
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 29, 2025
@achandrasekar achandrasekar merged commit b7484c9 into kubernetes-sigs:main May 29, 2025
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Publish container image for v0.1.0 release

4 participants