Skip to content

Commit

Permalink
Merge pull request kubearmor#1364 from rksharma95/fix-ci-release-work…
Browse files Browse the repository at this point in the history
…flow

fix(CI): fix ci release workflow to handle versioned release
  • Loading branch information
nyrahul authored Aug 14, 2023
2 parents 521d0a3 + bae80c2 commit 7affbaf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci-latest-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
build:
name: Create KubeArmor latest release
needs: check
if: github.repository == 'kubearmor/kubearmor' && needs.check.outputs.kubearmor == 'true'
if: github.repository == 'kubearmor/kubearmor' && (needs.check.outputs.kubearmor == 'true' || ${{ github.ref }} != 'refs/heads/main')
runs-on: ubuntu-20.04
permissions:
id-token: write
Expand Down Expand Up @@ -124,7 +124,7 @@ jobs:
push-stable-version:
name: Create KubeArmor stable release
needs: [build, check]
if: github.ref != 'refs/heads/main' && needs.check.outputs.kubearmor == 'true'
if: github.ref != 'refs/heads/main'
runs-on: ubuntu-20.04
permissions:
id-token: write
Expand Down Expand Up @@ -170,7 +170,7 @@ jobs:
kubearmor-controller-release:
name: Build & Push KubeArmorController
needs: check
if: github.repository == 'kubearmor/kubearmor' && needs.check.outputs.controller == 'true'
if: github.repository == 'kubearmor/kubearmor' && (needs.check.outputs.controller == 'true' || ${{ github.ref }} != 'refs/heads/main')
defaults:
run:
working-directory: ./pkg/KubeArmorController
Expand Down

0 comments on commit 7affbaf

Please sign in to comment.