Skip to content

maybe this will work #4

maybe this will work

maybe this will work #4

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
deploy:
if: ${{ github.event_name != 'pull_request' && (github.ref == 'refs/heads/main') }}
runs-on: ubuntu-latest
env:
RESOURCE_NAME: ${{ 'turbo-switch' }}
steps:
- uses: actions/checkout@v3
- name: Install oc
uses: redhat-actions/oc-installer@v1
with:
oc_version: '4.6'
- name: Login to OKD
run: oc login --token=${{ secrets.OKD_TOKEN }} --server=${{ secrets.OKD_SERVER }}
- name: Change the project
run: oc project ${{ secrets.OKD_PROJECT }}
- name: Start the build
run: oc start-build ${{ env.RESOURCE_NAME }} --follow