dumb me #27
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |