Skip to content

Commit

Permalink
added exclude for push when its renovate (#642)
Browse files Browse the repository at this point in the history
  • Loading branch information
garethahealy authored Dec 12, 2023
1 parent 4a5d3b5 commit 9e1ea53
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 10 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build-s2i-python-kopf-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ jobs:

- name: Push to ghcr.io
uses: redhat-actions/push-to-registry@9986a6552bc4571882a4a67e016b17361412b4df # v2
if: ${{ !contains(github.head_ref, 'renovate') }}
with:
image: ${{ steps.build_image.outputs.image }}
registry: ghcr.io/${{ github.repository }}
Expand All @@ -47,7 +48,7 @@ jobs:
tags: ${{ steps.build_image.outputs.tags }}

- name: Push to Quay
if: ${{ env.REGISTRY }} != ""
if: ${{ env.REGISTRY }} != "" && ${{ !contains(github.head_ref, 'renovate') }}
id: push_to_quay
uses: redhat-actions/push-to-registry@9986a6552bc4571882a4a67e016b17361412b4df # v2
with:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/jenkins-agent-image-mgmt-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jobs:

- name: Push to ghcr.io
uses: redhat-actions/push-to-registry@9986a6552bc4571882a4a67e016b17361412b4df # v2
if: ${{ !contains(github.head_ref, 'renovate') }}
with:
image: ${{ steps.build_image.outputs.image }}
registry: ghcr.io/${{ github.repository }}
Expand All @@ -46,7 +47,7 @@ jobs:
tags: ${{ steps.build_image.outputs.tags }}

- name: Push to Quay
if: ${{ env.REGISTRY }} != ""
if: ${{ env.REGISTRY }} != "" && ${{ !contains(github.head_ref, 'renovate') }}
id: push_to_quay
uses: redhat-actions/push-to-registry@9986a6552bc4571882a4a67e016b17361412b4df # v2
with:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/jenkins-agent-python-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jobs:

- name: Push to ghcr.io
uses: redhat-actions/push-to-registry@9986a6552bc4571882a4a67e016b17361412b4df # v2
if: ${{ !contains(github.head_ref, 'renovate') }}
with:
image: ${{ steps.build_image.outputs.image }}
registry: ghcr.io/${{ github.repository }}
Expand All @@ -46,7 +47,7 @@ jobs:
tags: ${{ steps.build_image.outputs.tags }}

- name: Push to Quay
if: ${{ env.REGISTRY }} != ""
if: ${{ env.REGISTRY }} != "" && ${{ !contains(github.head_ref, 'renovate') }}
id: push_to_quay
uses: redhat-actions/push-to-registry@9986a6552bc4571882a4a67e016b17361412b4df # v2
with:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/tekton-task-images-conftest-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ jobs:

- name: Push to ghcr.io
uses: redhat-actions/push-to-registry@9986a6552bc4571882a4a67e016b17361412b4df # v2
if: ${{ !contains(github.head_ref, 'renovate') }}
with:
image: ${{ steps.build_image.outputs.image }}
registry: ghcr.io/${{ github.repository }}
Expand All @@ -51,7 +52,7 @@ jobs:
tags: ${{ steps.build_image.outputs.tags }}

- name: Push to Quay
if: ${{ env.REGISTRY }} != ""
if: ${{ env.REGISTRY }} != "" && ${{ !contains(github.head_ref, 'renovate') }}
id: push_to_quay
uses: redhat-actions/push-to-registry@9986a6552bc4571882a4a67e016b17361412b4df # v2
with:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/tekton-task-images-helm-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ jobs:

- name: Push to ghcr.io
uses: redhat-actions/push-to-registry@9986a6552bc4571882a4a67e016b17361412b4df # v2
if: ${{ !contains(github.head_ref, 'renovate') }}
with:
image: ${{ steps.build_image.outputs.image }}
registry: ghcr.io/${{ github.repository }}
Expand All @@ -51,7 +52,7 @@ jobs:
tags: ${{ steps.build_image.outputs.tags }}

- name: Push to Quay
if: ${{ env.REGISTRY }} != ""
if: ${{ env.REGISTRY }} != "" && ${{ !contains(github.head_ref, 'renovate') }}
id: push_to_quay
uses: redhat-actions/push-to-registry@9986a6552bc4571882a4a67e016b17361412b4df # v2
with:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/toolbox-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jobs:

- name: Push to ghcr.io
uses: redhat-actions/push-to-registry@9986a6552bc4571882a4a67e016b17361412b4df # v2
if: ${{ !contains(github.head_ref, 'renovate') }}
with:
image: ${{ steps.build_image.outputs.image }}
registry: ghcr.io/${{ github.repository }}
Expand All @@ -46,7 +47,7 @@ jobs:
tags: ${{ steps.build_image.outputs.tags }}

- name: Push to Quay
if: ${{ env.REGISTRY }} != ""
if: ${{ env.REGISTRY }} != "" && ${{ !contains(github.head_ref, 'renovate') }}
id: push_to_quay
uses: redhat-actions/push-to-registry@9986a6552bc4571882a4a67e016b17361412b4df # v2
with:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/ubi8-asciidoctor-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:

- name: Push to ghcr.io
uses: redhat-actions/push-to-registry@9986a6552bc4571882a4a67e016b17361412b4df # v2
if: ${{ !contains(github.head_ref, 'renovate') }}
with:
image: ${{ steps.build_image.outputs.image }}
registry: ghcr.io/${{ github.repository }}
Expand All @@ -54,7 +55,7 @@ jobs:
tags: ${{ steps.build_image.outputs.tags }}

- name: Push to Quay
if: ${{ env.REGISTRY }} != ""
if: ${{ env.REGISTRY }} != "" && ${{ !contains(github.head_ref, 'renovate') }}
id: push_to_quay
uses: redhat-actions/push-to-registry@9986a6552bc4571882a4a67e016b17361412b4df # v2
with:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/ubi8-bats-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jobs:

- name: Push to ghcr.io
uses: redhat-actions/push-to-registry@9986a6552bc4571882a4a67e016b17361412b4df # v2
if: ${{ !contains(github.head_ref, 'renovate') }}
with:
image: ${{ steps.build_image.outputs.image }}
registry: ghcr.io/${{ github.repository }}
Expand All @@ -46,7 +47,7 @@ jobs:
tags: ${{ steps.build_image.outputs.tags }}

- name: Push to Quay
if: ${{ env.REGISTRY }} != ""
if: ${{ env.REGISTRY }} != "" && ${{ !contains(github.head_ref, 'renovate') }}
id: push_to_quay
uses: redhat-actions/push-to-registry@9986a6552bc4571882a4a67e016b17361412b4df # v2
with:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/ubi8-git-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jobs:

- name: Push to ghcr.io
uses: redhat-actions/push-to-registry@9986a6552bc4571882a4a67e016b17361412b4df # v2
if: ${{ !contains(github.head_ref, 'renovate') }}
with:
image: ${{ steps.build_image.outputs.image }}
registry: ghcr.io/${{ github.repository }}
Expand All @@ -46,7 +47,7 @@ jobs:
tags: ${{ steps.build_image.outputs.tags }}

- name: Push to Quay
if: ${{ env.REGISTRY }} != ""
if: ${{ env.REGISTRY }} != "" && ${{ !contains(github.head_ref, 'renovate') }}
id: push_to_quay
uses: redhat-actions/push-to-registry@9986a6552bc4571882a4a67e016b17361412b4df # v2
with:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/ubi8-google-api-python-client-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jobs:

- name: Push to ghcr.io
uses: redhat-actions/push-to-registry@9986a6552bc4571882a4a67e016b17361412b4df # v2
if: ${{ !contains(github.head_ref, 'renovate') }}
with:
image: ${{ steps.build_image.outputs.image }}
registry: ghcr.io/${{ github.repository }}
Expand All @@ -46,7 +47,7 @@ jobs:
tags: ${{ steps.build_image.outputs.tags }}

- name: Push to Quay
if: ${{ env.REGISTRY }} != ""
if: ${{ env.REGISTRY }} != "" && ${{ !contains(github.head_ref, 'renovate') }}
id: push_to_quay
uses: redhat-actions/push-to-registry@9986a6552bc4571882a4a67e016b17361412b4df # v2
with:
Expand Down

0 comments on commit 9e1ea53

Please sign in to comment.