-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Allow to pass docker login when in CI, but not in GitHub actions #6702
Allow to pass docker login when in CI, but not in GitHub actions #6702
Conversation
Could you explain the reasoning behind this to make it easier to understand? Thanks! |
I'll take a guess: I've conflated |
Jenkins, GitLab, hand-run if needed etc |
When building, we can store artifacts in the registry. However, if the build occurs within a Docker container, we must authenticate before invoking oras-cli. The line at build/lib/functions/host/docker.sh Line 476 in 839c5cf
It might be necessary to modify the condition if CI==true to if UPLOAD_TO_OCI_ONLY==yes to better reflect the intended functionality. |
839c5cf
to
1f97fa9
Compare
I see, thanks for your explanation! |
Even this is more or less internal switch, lets add it to the documentation. |
Good idea. I think work in progress still applies? Since:
|
1f97fa9
to
5e13cb1
Compare
…ment Signed-off-by: Viacheslav Bocharov <adeep@lexina.in>
5e13cb1
to
f6542cc
Compare
Seems found more lines to fix... |
Signed-off-by: Viacheslav Bocharov <adeep@lexina.in>
Signed-off-by: Viacheslav Bocharov <adeep@lexina.in>
7bd5663
to
3f412e5
Compare
Few lines to describe what this switch do https://github.com/armbian/documentation/blob/master/docs/Developer-Guide_Build-Options.md |
No. Should not affect to github actions |
Well done 👍 |
Description
Allow to use Docker credentials for oras-cli push artifacts when
CI=true
is set, but not in GitHub action.TODO: fix GITHUB_OUTPUT use if
CI=true
is set.Jira reference number AR-2357
How Has This Been Tested?
Checklist: