Skip to content

Commit

Permalink
Fix m2k Kfunc CI to only push on quay when merged on main
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriel-farache authored and masayag committed Feb 7, 2024
1 parent 1638fd1 commit cef2932
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/m2k-func.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ name: Build and push move2kube Knative function container image

on:
workflow_call:
inputs:
push_pr:
required: false
type: boolean
default: true
workflow_dispatch:
push:
branches: [ "main" ]
Expand Down Expand Up @@ -55,6 +60,7 @@ jobs:
path: serverless-workflow-m2k-kfunc-${{ github.sha }}.tar

- name: Push To quay.io
if: ${{ inputs.push_pr }}
id: push-to-quay
uses: redhat-actions/push-to-registry@v2
with:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/move2kube-e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:
build-m2k-kfunc:
uses: parodos-dev/serverless-workflows/.github/workflows/m2k-func.yaml@main
secrets: inherit
with:
push_pr: false

run-m2k-e2e:
runs-on: ubuntu-latest
Expand Down

0 comments on commit cef2932

Please sign in to comment.