Where to configure Built-in Registry Access Token Secret (OD-1988)
sun opened 1 year ago

I'm trying to push my docker image using CI, and it says I don't have permission as follows: image.png image_2.png

Then I added the Access Tokens of the project owner (which is the account I am logged in to), but I can't select it in the CI node as follows image_5.png image_4.png I did look at the documentation, but it doesn't say anything about how to create a Built-in Registry Access Token Secret.

I don't know what's going on, I hope you can help me with this, and also suggest refining the instructions on the documentation for this.

My version is OneDev 10.9.6

  • Robin Shen commented 1 year ago

    Follow below tutorial to add your access token as a job secret:

    https://docs.onedev.io/tutorials/cicd/job-secrets

    Then use that secret as built-in registry access token secret.

  • Robin Shen changed state to 'Closed' 1 year ago
    Previous Value Current Value
    Open
    Closed
  • sun commented 1 year ago

    I can select it, but why does it still say I don't have access? Is this value obtained from My Access Tokens?

    image_9.png image_8.png image_6.png

    image_7.png

  • sun changed state to 'Open' 1 year ago
    Previous Value Current Value
    Closed
    Open
  • sun commented 1 year ago

    Cannot be used after configuration

  • Robin Shen commented 1 year ago

    Please make sure the access token has package write permission over project starnavigate

  • sun commented 1 year ago

    Please make sure the access token has package write permission over project starnavigate

    No, I tried the project owner role and the package writer role (as shown in the image), and it still says I don't have permissions. image_10.png image_11.png image_12.png image_13.png image_14.png

  • Robin Shen commented 1 year ago

    It works at my side. Please create a test project at this instance demonstrating the issue.

  • sun commented 1 year ago

    It works at my side. Please create a test project at this instance demonstrating the issue.

    No, I think there is something wrong with my operation, I created a test project in code.onedev.io still can't push the docker image.

    I'll add you as the owner of the test project, will you help me see what's going on?💋

    Test Project is:https://code.onedev.io/DockerTest

  • Robin Shen commented 1 year ago

    There are several errors in your build spec. I fixed it and works now.

  • sun commented 1 year ago

    There are several errors in your build spec. I fixed it and works now.

    Thank you very much! According to your changelog, I realized that it was an incorrect output selection in the Docker build step. I appreciate your support and I will recommend your product to people around me, thanks! image_15.png

  • sun changed state to 'Closed' 1 year ago
    Previous Value Current Value
    Open
    Closed
  • sun commented 1 year ago

    Docker build step output is not selected correctly

issue 1/1
Type
Question
Priority
Normal
Assignee
Labels
No labels
Issue Votes (0)
Watchers (2)
Reference
OD-1988
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover