Skip to content

Commit

Permalink
Merge pull request #5 from yrodiere/oc-login
Browse files Browse the repository at this point in the history
Use redhat-actions/oc-login for OpenShift login on GitHub Actions
  • Loading branch information
yrodiere authored Oct 10, 2023
2 parents a973882 + 38fa83c commit d8c02a5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ jobs:
java-version: 17

- name: Log in to OpenShift
run: oc login --token=${{ secrets.SEARCH_QUARKUS_IO_OC_DEPLOY_TOKEN }} --server=${{ secrets.SEARCH_QUARKUS_IO_OC_DEPLOY_SERVER }}
uses: redhat-actions/oc-login@v1
with:
openshift_server_url: ${{ secrets.OPENSHIFT_SERVER }}
openshift_token: ${{ secrets.OPENSHIFT_TOKEN }}
namespace: ${{ env.OPENSHIFT_NAMESPACE }}

- name: Delete problematic image
run: oc delete is ubi-quarkus-native-binary-s2i || true
Expand Down

0 comments on commit d8c02a5

Please sign in to comment.