Skip to content

Conversation

@ronething
Copy link
Contributor

@ronething ronething commented Jun 4, 2025

Type of change:

  • Bugfix
  • New feature provided
  • Improve performance
  • Backport patches
  • Documentation
  • Refactor
  • Chore
  • CI/CD or Tests

What this PR does / why we need it:

Pre-submission checklist:

  • Did you explain what problem does this PR solve? Or what new features have been added?
  • Have you added corresponding test cases?
  • Have you modified the corresponding document?
  • Is this PR backward compatible? If it is not backward compatible, please discuss on the mailing list first

ronething added 2 commits June 4, 2025 14:07
Signed-off-by: ashing <[email protected]>
@ronething ronething requested a review from Copilot June 4, 2025 06:11
Copy link
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 enhances the Docker image release workflow by adding tag‐push triggers, upgrading actions and runner, and switching to a make‐based multi‐arch build.

  • Add a push trigger for any Git tag in addition to release.published
  • Change runner to buildjet-2vcpu-ubuntu-2204, bump checkout to v4, and set up Go
  • Replace the built‐in build-push action with a make build-push-multi-arch-image step
Comments suppressed due to low confidence (2)

.github/workflows/push-docker.yaml:9

  • [nitpick] Double-check that the self-hosted runner label buildjet-2vcpu-ubuntu-2204 is available and maintained, or fallback will stall CI jobs.
runs-on: buildjet-2vcpu-ubuntu-2204

.github/workflows/push-docker.yaml:17

  • [nitpick] If the make build-push-multi-arch-image target doesn’t require Go, you can remove the Go setup step to speed up CI.
uses: actions/setup-go@v4

types: [published]
push:
tags:
- '*'
Copy link

Copilot AI Jun 4, 2025

Choose a reason for hiding this comment

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

[nitpick] Triggering on every tag ('*') may build unintended images; consider restricting to semantic version tags (e.g. v*.*.*).

Suggested change
- '*'
- 'v*.*.*'

Copilot uses AI. Check for mistakes.
name: Checkout
uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@v4
Copy link

Copilot AI Jun 4, 2025

Choose a reason for hiding this comment

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

[nitpick] When checking out submodules, adding fetch-depth: 0 ensures full history and proper submodule initialization.

Copilot uses AI. Check for mistakes.
name: Build and push multi-arch image
env:
TAG: ${{ github.ref_name }}
IMAGE_TAG: ${{ github.ref_name }}
Copy link

Copilot AI Jun 4, 2025

Choose a reason for hiding this comment

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

[nitpick] You define both TAG and IMAGE_TAG with the same value; consider using a single variable to reduce redundancy.

Suggested change
IMAGE_TAG: ${{ github.ref_name }}

Copilot uses AI. Check for mistakes.
Comment on lines +35 to +40
env:
TAG: ${{ github.ref_name }}
IMAGE_TAG: ${{ github.ref_name }}
run: |
echo "building multi-arch images with tag: $TAG"
make build-push-multi-arch-image
Copy link

Copilot AI Jun 4, 2025

Choose a reason for hiding this comment

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

[nitpick] Using a run block for Docker builds loses built-in caching and insights; consider using docker/build-push-action@v5 with build-push instead.

Suggested change
env:
TAG: ${{ github.ref_name }}
IMAGE_TAG: ${{ github.ref_name }}
run: |
echo "building multi-arch images with tag: $TAG"
make build-push-multi-arch-image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ secrets.DOCKER_REGISTRY }}/${{ secrets.DOCKER_USERNAME }}/my-image:${{ github.ref_name }}
platforms: linux/amd64,linux/arm64

Copilot uses AI. Check for mistakes.
@github-actions
Copy link
Contributor

github-actions bot commented Jun 4, 2025

conformance test report

apiVersion: gateway.networking.k8s.io/v1
date: "2025-06-04T06:25:02Z"
gatewayAPIChannel: standard
gatewayAPIVersion: v1.2.0
implementation:
  contact: null
  organization: APISIX
  project: apisix-ingress-controller
  url: https://github.com/apache/apisix-ingress-controller.git
  version: v2.0.0
kind: ConformanceReport
mode: default
profiles:
- core:
    result: partial
    skippedTests:
    - HTTPRouteHTTPSListener
    statistics:
      Failed: 0
      Passed: 32
      Skipped: 1
  name: GATEWAY-HTTP
  summary: Core tests partially succeeded with 1 test skips.

@ronething ronething merged commit 3899e70 into release-v2-dev Jun 4, 2025
11 checks passed
@ronething ronething deleted the fix/release_ci branch June 4, 2025 09:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants