Skip to content
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

Docker auth #891

Merged
merged 6 commits into from
Nov 27, 2021
Merged

Docker auth #891

merged 6 commits into from
Nov 27, 2021

Conversation

ZauberNerd
Copy link
Contributor

This PR uses parts of the docker/cli to read the local docker config to get the authentication from it.
This is helpful for private registries, which worked before, but required to pass DOCKER_USERNAME and DOCKER_PASSWORD as secrets.
Now it will take existing authentication information from the Docker CLI if the secrets are not explicitly passed.

@ZauberNerd ZauberNerd requested a review from a team as a code owner November 18, 2021 16:22
@mergify
Copy link
Contributor

mergify bot commented Nov 18, 2021

@ZauberNerd this pull request has failed checks 🛠

@mergify mergify bot added the needs-work Extra attention is needed label Nov 18, 2021
@mergify
Copy link
Contributor

mergify bot commented Nov 18, 2021

@ZauberNerd this pull request has failed checks 🛠

@ZauberNerd ZauberNerd marked this pull request as draft November 18, 2021 23:29
@mergify

This comment has been minimized.

@codecov
Copy link

codecov bot commented Nov 22, 2021

Codecov Report

Merging #891 (f8fe1f2) into master (0f04942) will increase coverage by 6.68%.
The diff coverage is 59.34%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #891      +/-   ##
==========================================
+ Coverage   49.27%   55.95%   +6.68%     
==========================================
  Files          23       27       +4     
  Lines        2401     4055    +1654     
==========================================
+ Hits         1183     2269    +1086     
- Misses       1090     1579     +489     
- Partials      128      207      +79     
Impacted Files Coverage Δ
pkg/common/outbound_ip.go 0.00% <0.00%> (ø)
pkg/common/testflag.go 0.00% <0.00%> (ø)
pkg/container/docker_volume.go 0.00% <0.00%> (ø)
pkg/model/action.go 0.00% <ø> (ø)
pkg/container/docker_run.go 5.53% <14.54%> (+3.60%) ⬆️
pkg/common/git.go 49.82% <31.81%> (-9.97%) ⬇️
pkg/runner/logger.go 65.43% <37.50%> (+1.28%) ⬆️
pkg/model/planner.go 49.78% <42.50%> (+16.70%) ⬆️
pkg/container/docker_auth.go 45.00% <45.00%> (ø)
pkg/container/docker_build.go 58.97% <50.00%> (+58.97%) ⬆️
... and 33 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5bdb9ed...f8fe1f2. Read the comment docs.

@ZauberNerd ZauberNerd marked this pull request as ready for review November 22, 2021 16:47
@mergify mergify bot removed the needs-work Extra attention is needed label Nov 22, 2021
@ZauberNerd ZauberNerd mentioned this pull request Nov 24, 2021
catthehacker
catthehacker previously approved these changes Nov 27, 2021
@mergify mergify bot requested a review from a team November 27, 2021 01:45
cplee
cplee previously approved these changes Nov 27, 2021
ZauberNerd and others added 5 commits November 27, 2021 17:57
Co-authored-by: Björn Brauer <zaubernerd@zaubernerd.de>
... the image is in a custom registry or not.

Co-authored-by: Björn Brauer <zaubernerd@zaubernerd.de>
By default github actions have a docker config set with a token to pull
images from docker hub.

Co-authored-by: Markus Wolf <markus.wolf@new-work.se>
@ZauberNerd ZauberNerd dismissed stale reviews from cplee and catthehacker via 35568b3 November 27, 2021 17:58
@mergify mergify bot requested a review from a team November 27, 2021 18:06
@mergify mergify bot merged commit b910a42 into nektos:master Nov 27, 2021
@ZauberNerd ZauberNerd deleted the docker-auth branch November 27, 2021 23:19
ZauberNerd added a commit to xing/act that referenced this pull request Nov 30, 2021
* nektos#898
* nektos#891

have both been merged upstream, so they're no longer required here.
ZauberNerd added a commit to xing/act that referenced this pull request Nov 30, 2021
* nektos#898
* nektos#891

have both been merged upstream, so they're no longer required here.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants