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

Add GitLab CI credentials helper #2040

Conversation

ePirat
Copy link
Contributor

@ePirat ePirat commented Apr 10, 2022

Description

Adds a GitLab CI credentials helper that fetches the credentials
for a GitLab Docker registry from the CI environment if available.

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

  • Includes unit tests
  • Adds integration tests if needed.

Reviewer Notes

  • The code flow looks good.
  • Unit tests and or integration tests added.

Release Notes

- kaniko now automatically uses GitLab CI Docker registry credentials from the env variables, if available

Copy link
Collaborator

@imjasonh imjasonh left a comment

Choose a reason for hiding this comment

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

Thanks for this! Always great to see another cred helper implementation 👍

deploy/Dockerfile_debug Outdated Show resolved Hide resolved
This simplifies usage of Kaniko in GitLab CI environments and
means that it's not longer necessary to manually cobble together
the config with the right values from the environment in
error-prone shell commands.
@ePirat ePirat force-pushed the epirat-add-gitlab-credentials-helper branch from 4544efa to 671d6fe Compare April 11, 2022 14:00
@imjasonh imjasonh merged commit f930b75 into GoogleContainerTools:main Apr 11, 2022
@ePirat
Copy link
Contributor Author

ePirat commented Apr 11, 2022

Thanks for the review and merging. I was wondering, how long will it take for the new version to be available at gcr.io? Will it require a formal release or when are these images updated?

@imjasonh
Copy link
Collaborator

Commit-tagged images are available. The debug variant was just pushed 6 minutes ago, to gcr.io/kaniko-project/executor:f930b75b8b2c310b3d7fc4e1d8ddb30859cee9aa-debug -- the rest should be showing up soon (watch progress here)

@ePirat
Copy link
Contributor Author

ePirat commented Apr 11, 2022

Thanks, and I guess the gcr.io/kaniko-project/executor:debug will be updated once the next release is tagged, right?

@imjasonh
Copy link
Collaborator

Thanks, and I guess the gcr.io/kaniko-project/executor:debug will be updated once the next release is tagged, right?

Yep, exactly.

@imjasonh imjasonh mentioned this pull request Jun 1, 2022
chuangw6 added a commit that referenced this pull request Jun 1, 2022
Highlights
- Installed binaries are missing from image [#2049](#2049)
- proc: detect kubernetes runtime by mounts [#2054](#2054)
- Fixes #2046: make target stage lookup case insensitive [#2047](#2047)
- fix: Refactor LayersMap to correct old strange code behavior [#2066](#2066)
- Fix missing setuid flags on COPY --from=build operation [#2089](#2089)
- Fixes #2046: make target stage lookup case insensitive [#2047](#2047)
- Add GitLab CI credentials helper [#2040]((#2040))
- and a number of dependency bumps
chuangw6 added a commit that referenced this pull request Jun 1, 2022
Highlights
- Installed binaries are missing from image #2049
- proc: detect kubernetes runtime by mounts #2054
- Fixes #2046: make target stage lookup case insensitive #2047
- Fix: Refactor LayersMap to correct old strange code behavior #2066
- Fix missing setuid flags on COPY --from=build operation #2089
- Fixes #2046: make target stage lookup case insensitive #2047
- Add GitLab CI credentials helper #2040
- And a number of dependency bumps
@chuangw6 chuangw6 mentioned this pull request Jun 1, 2022
4 tasks
chuangw6 added a commit that referenced this pull request Aug 9, 2022
Highlights
- Installed binaries are missing from image #2049
- proc: detect kubernetes runtime by mounts #2054
- Fixes #2046: make target stage lookup case insensitive #2047
- Fix: Refactor LayersMap to correct old strange code behavior #2066
- Fix missing setuid flags on COPY --from=build operation #2089
- Fixes #2046: make target stage lookup case insensitive #2047
- Add GitLab CI credentials helper #2040
- And a number of dependency bumps
chuangw6 added a commit that referenced this pull request Aug 10, 2022
Highlights
- Installed binaries are missing from image #2049
- proc: detect kubernetes runtime by mounts #2054
- Fixes #2046: make target stage lookup case insensitive #2047
- Fix: Refactor LayersMap to correct old strange code behavior #2066
- Fix missing setuid flags on COPY --from=build operation #2089
- Fixes #2046: make target stage lookup case insensitive #2047
- Add GitLab CI credentials helper #2040
- And a number of dependency bumps
no-reply pushed a commit to surfliner/surfliner-mirror that referenced this pull request Aug 11, 2022
Kaniko 1.9.0 introduced an integrated setup for this via a credentials
helper.

see: GoogleContainerTools/kaniko#2040
see: https://github.com/ePirat/docker-credential-gitlabci
JonasGroeger added a commit to JonasGroeger/kaniko that referenced this pull request Aug 26, 2022
imjasonh pushed a commit that referenced this pull request Aug 26, 2022
@chuangw6 chuangw6 mentioned this pull request Sep 26, 2022
4 tasks
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.

None yet

2 participants