Skip to content

Commit

Permalink
Test pr build (#782)
Browse files Browse the repository at this point in the history
  • Loading branch information
kuanfandevops authored Jul 25, 2024
1 parent 4f18148 commit 130dff3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pr-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ name: PR Build on Dev
on:
pull_request:
types: [labeled, synchronize]
# paths:
# - frontend/**
# - backend/**
paths:
- frontend/**
- backend/**

env:
VERSION: 0.2.0
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/pr-teardown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ concurrency:
jobs:

teardown:
if: contains(github.event.pull_request.labels.*.name, 'build')
if: github.event.label.name == 'build'
name: PR Teardown
runs-on: ubuntu-latest
timeout-minutes: 60
Expand All @@ -37,6 +37,5 @@ jobs:
helm -n ${{ env.DEV_NAMESPACE }} uninstall lcfs-backend-dev-${{ env.PR_NUMBER }}
helm -n ${{ env.DEV_NAMESPACE }} uninstall lcfs-redis-dev-${{ env.PR_NUMBER }}
helm -n ${{ env.DEV_NAMESPACE }} uninstall lcfs-postgres-dev-${{ env.PR_NUMBER }}
helm -n ${{ env.DEV_NAMESPACE }} delete pvc -l app.kubernetes.io/instance=lcfs-postgres-dev-${{ env.PR_NUMBER }}
helm -n ${{ env.DEV_NAMESPACE }} delete pvc -l app.kubernetes.io/instance=lcfs-redis-dev-${{ env.PR_NUMBER }}
oc -n ${{ env.DEV_NAMESPACE }} delete pvc -l app.kubernetes.io/instance=lcfs-postgres-dev-${{ env.PR_NUMBER }}
oc -n ${{ env.DEV_NAMESPACE }} delete pvc -l app.kubernetes.io/instance=lcfs-redis-dev-${{ env.PR_NUMBER }}

0 comments on commit 130dff3

Please sign in to comment.