-
Notifications
You must be signed in to change notification settings - Fork 18
30 lines (26 loc) · 829 Bytes
/
example.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: oc-login Example
on:
push:
workflow_dispatch:
schedule:
- cron: '0 0 * * *' # every day at midnight
jobs:
login:
name: OpenShift Login and Test
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Log in and set context
# In a real workflow, point the 'uses' to a tag.
# uses: redhat-actions/oc-login@v1
uses: ./
with:
openshift_server_url: ${{ secrets.OPENSHIFT_SERVER }}
openshift_token: ${{ secrets.OPENSHIFT_TOKEN }}
# openshift_username: ${{ env.TEST_USER }}
# openshift_password: ${{ secrets.OPENSHIFT_PASSWORD }}
certificate_authority_data: ${{ secrets.CA_DATA }}
namespace: ${{ secrets.OPENSHIFT_NAMESPACE }}
- name: Test
run: |
oc api-resources