Skip to content

Commit

Permalink
adding more .yml files
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryce Coon committed Apr 18, 2024
1 parent 62808ba commit 289d42b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/backup-database.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: backup database
on:
- workflow_dispatch
push:
branches:
- separateBranch
workflow_dispatch:
jobs:
backup:
runs-on: self-hosted
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/pull-request-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: pull request environment
on:
pull_request:
types: [opened]
push:
branches: [separateBranch]
jobs:
deploy-to-kubernetes:
runs-on: self-hosted
Expand All @@ -11,4 +13,7 @@ jobs:
- name: deploy kubernetes environment
run: |
export PULL_REQUEST_ID=${{ github.event.pull_request.number}}
kubectl create namespace bryce-pr-$PULL_REQUEST_ID
kubectl create namespace bryce-pr-$PULL_REQUEST_ID || true
kubectl -n bryce-pr-$PULL_REQUEST_ID delete configmap blazor-web-postgres-init || true
kubectl -n bryce-pr-$PULL_REQUEST_ID create configmap blazor-web-postgres-init --from-file=init.sql

0 comments on commit 289d42b

Please sign in to comment.