-
Notifications
You must be signed in to change notification settings - Fork 176
Feature: Add registry login to CI workflows. #3297
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
Conversation
GitHub workflows generated by 'func config ci' previously lacked registry authentication. Now a registry login step was added. Add new flags for registry authentication and runner configuration: - --use-registry-login: enable/disable registry login step (default: true) - --registry-login-url-variable-name: customize registry URL variable (default: REGISTRY_LOGIN_URL) - --registry-user-variable-name: customize username variable (default: REGISTRY_USERNAME) - --registry-pass-secret-name: customize password secret (default: REGISTRY_PASSWORD) - --self-hosted-runner: use self-hosted instead of ubuntu-latest runners (default: false) Workflow generation logic is refactored into helper functions for better maintainability. More logic will be added to this functions in follow up PRs. Issue knative#3256 Signed-off-by: Stanislav Jakuschevskij <sjakusch@redhat.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3297 +/- ##
==========================================
+ Coverage 54.92% 54.98% +0.06%
==========================================
Files 170 170
Lines 19744 19824 +80
==========================================
+ Hits 10844 10900 +56
- Misses 7832 7852 +20
- Partials 1068 1072 +4
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
gauron99
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
just left some non-blocking comments. Thanks!
| steps = createCheckoutStep(steps) | ||
| steps = createK8ContextStep(conf, steps) | ||
| steps = createRegistryLoginStep(conf, steps) | ||
| steps = createFuncCLIInstallStep(steps) | ||
| steps = createFuncDeployStep(conf, steps) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like these one line steps, much cleaner :)
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gauron99, twoGiants The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Changes
--use-registry-loginflag to enable/disable registry login step in generated workflow (default: true)--self-hosted-runnerflag to use self-hosted runners instead of ubuntu-latest (default: false)--registry-login-url-variable-nameflag to customize the registry URL variable name in the workflow (default: REGISTRY_LOGIN_URL)--registry-user-variable-nameflag to customize the registry username variable name in the workflow (default: REGISTRY_USERNAME)--registry-pass-secret-nameflag to customize the registry password secret name in the workflow (default: REGISTRY_PASSWORD)docker/login-action@v3in generated workflows/kind enhancement
Relates to #3256
Release Note
Docs