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

can't push to gcr #848

Closed
AkihiroSuda opened this issue May 9, 2019 · 2 comments · Fixed by tektoncd/catalog#22
Closed

can't push to gcr #848

AkihiroSuda opened this issue May 9, 2019 · 2 comments · Fixed by tektoncd/catalog#22
Labels
area/yamls This issue involves writing a lot of yaml kind/bug Categorizes issue or PR as related to a bug.

Comments

@AkihiroSuda
Copy link

AkihiroSuda commented May 9, 2019

Expected Behavior

can push to gcr

Actual Behavior

kaniko fails with error pushing image: failed to push to destination gcr.io/*****/*****: DENIED: "Access denied.".
Looks like the credential is not mounted on /root/.docker .

Steps to Reproduce the Problem

  1. Run https://github.com/knative/build-templates/blob/fa2ac1bc3f31d6d7a367e1c783c116b1f6b94ce0/gcr_helper/helper.sh but s/build.knative.dev/tekton.dev/g
  2. Apply https://github.com/tektoncd/catalog/blob/2211c49b2f2911c5b353b6d28a244532e46e28d9/kaniko/kaniko.yaml
  3. Apply the following yaml
kind: TaskRun
metadata:
  name: example-run
spec:
  serviceAccount: builder
  taskRef:
    name: kaniko
  inputs:
    resources:
    - name: source
      resourceSpec:
        type: git
        params:
        - name: url
          value: https://github.com/*****/*****
  outputs:
    resources:
    - name: image
      resourceSpec:
        type: image
        params:
        - name: url
          value: gcr.io/*****/*****

Additional Info

  • Running on GKE
  • controller: gcr.io/tekton-releases/github.com/tektoncd/pipeline/cmd/controller@sha256:85b932024e07dc2538dece0d979fc0030211600e07ff6fb18935cd7a6b56bad6
@vdemeester vdemeester added the kind/bug Categorizes issue or PR as related to a bug. label May 9, 2019
@vincent-pli
Copy link
Member

Seems similar with this issue:
#706

@vdemeester vdemeester added the area/yamls This issue involves writing a lot of yaml label May 9, 2019
AkihiroSuda added a commit to AkihiroSuda/catalog that referenced this issue May 10, 2019
Discussed in tektoncd/pipeline#706
Fix tektoncd/pipeline#848

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
@AkihiroSuda
Copy link
Author

thanks

tekton-robot pushed a commit to tektoncd/catalog that referenced this issue May 10, 2019
Discussed in tektoncd/pipeline#706
Fix tektoncd/pipeline#848

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/yamls This issue involves writing a lot of yaml kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants