From 130dff308a85e8b492cef49d11c85a0dca64cf61 Mon Sep 17 00:00:00 2001 From: Kuan Fan <31664961+kuanfandevops@users.noreply.github.com> Date: Thu, 25 Jul 2024 15:27:45 -0700 Subject: [PATCH] Test pr build (#782) --- .github/workflows/pr-build.yaml | 6 +++--- .github/workflows/pr-teardown.yaml | 7 +++---- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/pr-build.yaml b/.github/workflows/pr-build.yaml index bdab6d235..1f2bf3267 100644 --- a/.github/workflows/pr-build.yaml +++ b/.github/workflows/pr-build.yaml @@ -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 diff --git a/.github/workflows/pr-teardown.yaml b/.github/workflows/pr-teardown.yaml index b5c21de29..62f3db694 100644 --- a/.github/workflows/pr-teardown.yaml +++ b/.github/workflows/pr-teardown.yaml @@ -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 @@ -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 }}