Skip to content

Parameterise registry details in CI, and add retries to aws authenticator install#23

Merged
lwr20 merged 2 commits intoprojectcalico:mainfrom
lwr20:lwr-actions
Aug 26, 2025
Merged

Parameterise registry details in CI, and add retries to aws authenticator install#23
lwr20 merged 2 commits intoprojectcalico:mainfrom
lwr20:lwr-actions

Conversation

@lwr20
Copy link
Member

@lwr20 lwr20 commented Aug 22, 2025

This should enable CI to function on forks.

Not changing QUAY_USERNAME or QUAY_TOKEN variable names, because they're already embedded in the repo settings and its a pain to change them.

@lwr20 lwr20 requested a review from Copilot August 22, 2025 19:49
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 parameterizes registry details in CI to make the container registry configurable and improves the reliability of the AWS IAM authenticator installation by adding retries.

  • Moves from hardcoded quay.io registry to configurable registry and organization variables
  • Replaces the ADD command with curl for AWS IAM authenticator download with retry logic

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
Dockerfile Replaces ADD with curl retry logic for AWS IAM authenticator installation and consolidates RUN commands
.github/workflows/ci.yml Parameterizes registry details using GitHub variables and updates login step naming

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@@ -1,10 +1,13 @@
name: ci
# This file requires QUAY_USERNAME, REGISTRY, ORGANISATION variables and a QUAY_TOKEN secret
Copy link

Copilot AI Aug 22, 2025

Choose a reason for hiding this comment

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

The comment references QUAY_USERNAME but the registry is now parameterized. Consider updating to reference a generic username variable like REGISTRY_USERNAME to match the parameterized approach.

Suggested change
# This file requires QUAY_USERNAME, REGISTRY, ORGANISATION variables and a QUAY_TOKEN secret
# This file requires REGISTRY_USERNAME, REGISTRY, ORGANISATION variables and a REGISTRY_TOKEN secret

Copilot uses AI. Check for mistakes.
with:
registry: quay.io
registry: ${{ vars.REGISTRY }}
username: ${{ vars.QUAY_USERNAME }}
Copy link

Copilot AI Aug 22, 2025

Choose a reason for hiding this comment

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

The username variable is still hardcoded to QUAY_USERNAME while the registry is now parameterized. Consider using a generic variable name like REGISTRY_USERNAME for consistency with the parameterized approach.

Suggested change
username: ${{ vars.QUAY_USERNAME }}
username: ${{ vars.REGISTRY_USERNAME }}

Copilot uses AI. Check for mistakes.
registry: quay.io
registry: ${{ vars.REGISTRY }}
username: ${{ vars.QUAY_USERNAME }}
password: ${{ secrets.QUAY_TOKEN }}
Copy link

Copilot AI Aug 22, 2025

Choose a reason for hiding this comment

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

The password secret is still hardcoded to QUAY_TOKEN while the registry is now parameterized. Consider using a generic secret name like REGISTRY_TOKEN for consistency with the parameterized approach.

Suggested change
password: ${{ secrets.QUAY_TOKEN }}
password: ${{ secrets.REGISTRY_TOKEN }}

Copilot uses AI. Check for mistakes.
@lwr20 lwr20 merged commit 2a7e1c8 into projectcalico:main Aug 26, 2025
1 check passed
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.

2 participants