Skip to content
This repository has been archived by the owner on Dec 11, 2020. It is now read-only.

Offer a setup-oc action #28

Closed
nymous opened this issue May 7, 2020 · 3 comments
Closed

Offer a setup-oc action #28

nymous opened this issue May 7, 2020 · 3 comments
Milestone

Comments

@nymous
Copy link

nymous commented May 7, 2020

Extracting the download & installation logic from this action to provide an action similar to the setup-node or setup-python actions would be useful for two cases:

- uses: redhat-developer/setup-oc
  with:
    version: '3.11.36'
- run: oc version > version.txt
  • allow us to use the preinstalled helm to deploy to Openshift cluster, eg:
- uses: redhat-developer/setup-oc
  with:
    version: '3.11.36'
- run: |
    oc login ...
    helm upgrade --install chart
@lstocchi
Copy link
Collaborator

lstocchi commented Jun 3, 2020

Thanks for opening the issue @nymous and sorry for the late response. We discussed about it and we decided to add a new feature to the existing action to allow users to just use the download and installation logic.

Adding it to our sprint.

@lstocchi
Copy link
Collaborator

Hello @nymous ,
we finally released a new version of the action. It now allows you to set up oc and use it in the following scripts.

    - name: OpenShift Action
      uses: redhat-developer/[email protected]
      with:
        version: '3.11.90'
    - name: followingScript
      run: |
        oc login --token=${{ secrets.API_TOKEN }} --server=${{ secrets.OPENSHIFT_SERVER_URL }}
        oc get pods | grep build

The new version is the v2.1.0.
I'm closing this issue but if you find any problem about setting up oc or you have any feedback feel free to reopen this.
Thanks again for your message and sorry again for the late response :)

@nymous
Copy link
Author

nymous commented Jun 23, 2020

Awesome, thanks!
No problem with the delay, I'm guilty of this myself on other projects 😅

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants