Skip to content

Commit 8c00510

Browse files
Merge pull request #13891 from rabbitmq/mergify/bp/v4.1.x/pr-13890
CI: tweak OCI workflow trigger (backport #13890)
2 parents 02268ef + 224a578 commit 8c00510

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

.github/workflows/oci-make.yaml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@
55
#
66
name: OCI (make)
77
on:
8-
push:
9-
paths-ignore:
10-
- '.github/workflows/secondary-umbrella.yaml'
11-
- '.github/workflows/update-elixir-patches.yaml'
12-
- '.github/workflows/update-otp-patches.yaml'
13-
- '.github/workflows/release-alphas.yaml'
14-
- '*.md'
8+
pull_request:
9+
paths:
10+
- deps/**
11+
- scripts/**
12+
- Makefile
13+
- plugins.mk
14+
- rabbitmq-components.mk
15+
- packaging/**
16+
- .github/workflows/oci-make.yaml
1517
workflow_dispatch:
1618
inputs:
1719
otp_version:
@@ -25,7 +27,7 @@ on:
2527
default: false
2628
env:
2729
REGISTRY_IMAGE: pivotalrabbitmq/rabbitmq
28-
VERSION: 4.1.0+${{ github.sha }}
30+
VERSION: 4.2.0+${{ github.sha }}
2931
concurrency:
3032
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
3133
cancel-in-progress: true
@@ -37,6 +39,8 @@ jobs:
3739
- ${{ github.event.inputs.otp_version || '27' }}
3840
runs-on: ubuntu-latest
3941
outputs:
42+
# When dependabot, or a user from a fork, creates PRs, secrets are not injected, and the OCI workflow can't push the image
43+
# This check acts as a gate keeper
4044
authorized: ${{ steps.authorized.outputs.authorized }}
4145
steps:
4246
- name: CHECK IF IMAGE WILL PUSH

0 commit comments

Comments
 (0)