-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 Credential #2440
Comments
@2020testuser we specifically added support for Having said that, we do look in I really do suggest you find a way to upgrade your gradle version to something newer that |
On Tekton (basically on Kubernetes), for some reason if you don't want to use a ServiceAccount, another way I can think of is to mount a secret as a volume. See this Kubernetes doc: "Using Secrets as files from a Pod". Once you have the file, you can copy or symlink it to BTW, Tekton has some complex issues around But when using an old version of Jib, your Docker secret on Kubernetes should be the type apiVersion: v1
kind: Secret
metadata:
name: myregistrykey
namespace: awesomeapps
data:
.dockerconfigjson: UmVhbGx...
type: kubernetes.io/dockerconfigjson |
Here's another Tekton example to mount a secret. |
Yes, I agree. Migrating to latest Gradle/Jib is better. I'm using Gradle 4.6 and is the latest Jib supported in it? |
I was hoping you could push your company to upgrade gradle. |
I'll close this issue, as there is no action item on the Jib side. To make it clear, I'm afraid we don't have a plan to lower the minimum Gradle version requirement from 5.x in future Jib versions. Just in case, note that you can use Gradle 5.1 inside the
|
I'm trying to use the remote docker registry credentials in Jib which is called inside an image script in Tekton Pipeline.
Wondering whether there is a better/easy way to set the credential other than using Docker secret , call the secret in a ServiceAccount and tie the ServiceAccount to the TaskRun. Since, I'm using old version of Jib, I'm unable to use $DOCKER_CONFIG.
Environment:
Jib 4.0.4
Tekton Pipeline
Kuberenes
The text was updated successfully, but these errors were encountered: