Skip to content

Commit

Permalink
Merge pull request #49 from kubescape/force
Browse files Browse the repository at this point in the history
add a force option to run anywhere
  • Loading branch information
matthyx committed Sep 14, 2023
2 parents aa979f7 + ee0a58a commit cbea250
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/incluster-comp-pr-merged.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
HELM_BRANCH:
required: false
type: string
default: release
default: main
IMAGE_NAME:
required: true
type: string
Expand Down Expand Up @@ -52,10 +52,14 @@ on:
default: master
type: string
description: 'system tests branch'
FORCE:
required: false
default: false
type: boolean

jobs:
docker-build:
if: ${{ (contains(github.event.pull_request.labels.*.name, 'release') || contains( github.event.pull_request.labels.*.name, 'trigger-integration-test')) && github.repository_owner == 'kubescape' }}
if: ${{ ((contains(github.event.pull_request.labels.*.name, 'release') || contains( github.event.pull_request.labels.*.name, 'trigger-integration-test')) && github.repository_owner == 'kubescape') || inputs.FORCE }}
runs-on: ubuntu-latest
outputs:
IMAGE_TAG_PRERELEASE: ${{ steps.image-prerelease-tag.outputs.IMAGE_TAG_PRERELEASE }}
Expand Down Expand Up @@ -254,7 +258,6 @@ jobs:
with:
workflow: 00-cicd.yaml
repo: kubescape/helm-charts
ref: dev
ref: ${{ inputs.HELM_BRANCH }}
token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
inputs: '{"IMAGE_TAG":"${{ inputs.IMAGE_TAG }}","COMPONENT_NAME":"${{ inputs.COMPONENT_NAME }}","HELM_E2E_TEST":"${{ inputs.HELM_E2E_TEST }}","CHANGE_TAG":"true"}'

0 comments on commit cbea250

Please sign in to comment.