Giter Site home page Giter Site logo

Comments (3)

lstocchi avatar lstocchi commented on May 29, 2024

Tried with both and it works fine. Maybe i just need to add an input to set the tls-verify to false for openshift registry as in crc i get this error "x509: certificate signed by unknown authority"

For an internal OpenShift registry the values needed are:

- name: Push To Quay
      uses: redhat-actions/push-to-registry@v1
      with:
        image: ${{ env.IMAGE_NAME }}
        registry: ${{ secrets.OPENSHIFT_REGISTRY }} // something like  default-route-openshift-image-registry.apps-crc.testing/projectname
        username: ${{ secrets.OPENSHIFT_USERNAME }} // classic username used to login in openshift
        password: ${{ secrets.OPENSHIFT_TOKEN }} // the openshift token (not working by using the password)

What we need to mention is that the user need to have some specific roles to push/pull to the registry https://docs.openshift.com/container-platform/3.9/install_config/registry/accessing_registry.html#access-user-prerequisites

For dockerhub, the same as quay.io

- name: Push To Quay
      uses: redhat-actions/push-to-registry@v1
      with:
        image: ${{ env.IMAGE_NAME }}
        registry: ${{ secrets.DOCKER_REPO }} //docker.io/username
        username: ${{ secrets.DOCKER_USERNAME }} 
        password: ${{ secrets.DOCKER_TOKEN }}

from push-to-registry.

divyansh42 avatar divyansh42 commented on May 29, 2024

Can we also provide examples (of pushing to different registries) for few of them?
Does it makes sense?

from push-to-registry.

tetchel avatar tetchel commented on May 29, 2024

Closing this because Divyanshu verified the OpenShift Registry, and I verified GHCR.

from push-to-registry.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.