how can i run oc login and oc rollout using github action?

154 Views Asked by At

here are my some of the workflow steps and last one is failing

    - name: Install oc
      uses: redhat-actions/openshift-tools-installer@v1
      with:
        oc: 4.10 

    # https://github.com/redhat-actions/oc-login#readme
    - name: Log in to OpenShift
      uses: redhat-actions/oc-login@v1
      with:
        openshift_server_url: ${{ env.OPENSHIFT_SERVER }}
        openshift_token: ${{ env.OPENSHIFT_TOKEN }}
        insecure_skip_tls_verify: true
        namespace: ${{ env.OPENSHIFT_NAMESPACE }}

    - name: Deploy new image as rollout
      run: oc rollout latest dc/asenion-app

unable to find out any GitHub action in github marketplace to run "oc rollout" or other openshift cli commands

0

There are 0 best solutions below