Skip to content

Commit

Permalink
WIP openshift deployment action
Browse files Browse the repository at this point in the history
  • Loading branch information
Hunter Gerlach committed Nov 22, 2023
1 parent 456fe20 commit 8e508dd
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/deploy-openshift.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Deploy to OpenShift

on:
pull_request:
paths:
- "src/**"
- ".github/workflows/**"
- "Makefile"
- "pyproject.toml"
- "poetry.lock"
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest
environment: test-non-prod
steps:
- uses: actions/checkout@v2
- name: 'Deploy to OpenShift'
uses: redhat-actions/oc-login@v1
with:
openshift_server_url: ${{ secrets.OPENSHIFT_SERVER_URL }}
openshift_token: ${{ secrets.OPENSHIFT_API_TOKEN }}
namespace: ${{ secrets.OPENSHIFT_PROJECT_NAME }}
# Optional:
# insecure_skip_tls_verify: true # Only use in non-production environments

0 comments on commit 8e508dd

Please sign in to comment.