-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Hunter Gerlach
committed
Nov 22, 2023
1 parent
456fe20
commit 8e508dd
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
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
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 |