Skip to content

Commit 8edde88

Browse files
committed
fix(ci): add image_tag input for manual triggers in integration workflows
1 parent e1c7ed3 commit 8edde88

4 files changed

Lines changed: 24 additions & 6 deletions

File tree

.github/workflows/crowdsec-integration.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ on:
77
branches: [main, development, 'feature/**'] # Explicit branch filter prevents unexpected triggers
88
# Allow manual trigger for debugging
99
workflow_dispatch:
10+
inputs:
11+
image_tag:
12+
description: 'Docker image tag to test (e.g., pr-123-abc1234, latest)'
13+
required: false
14+
type: string
1015

1116
concurrency:
1217
group: ${{ github.workflow }}-${{ github.ref }}

.github/workflows/e2e-tests.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ on:
4848
- firefox
4949
- webkit
5050
- all
51+
image_tag:
52+
description: 'Docker image tag to test (e.g., pr-123-abc1234, latest)'
53+
required: false
54+
type: string
5155

5256
env:
5357
NODE_VERSION: '20'
@@ -62,7 +66,7 @@ env:
6266
CI_LOG_LEVEL: 'verbose'
6367

6468
concurrency:
65-
group: e2e-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
69+
group: e2e-${{ github.workflow }}-${{ github.ref }}
6670
cancel-in-progress: true
6771

6872
jobs:
@@ -215,13 +219,12 @@ jobs:
215219
echo "sha=${SHORT_SHA}" >> $GITHUB_OUTPUT
216220
echo "Determined image tag: $(cat $GITHUB_OUTPUT | grep tag=)"
217221
218-
# Pull image from registry with retry logic (dual-source strategy)
219-
# Try registry first (fast), fallback to artifact if registry fails
220-
- name: Pull Docker image from registry
221-
id: pull_image
222-
uses: nick-fields/retry@v3
222+
# Download Docker image artifact from build job
223+
- name: Download Docker image
224+
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7
223225
with:
224226
name: docker-image
227+
path: .
225228

226229
- name: Validate Emergency Token Configuration
227230
run: |

.github/workflows/rate-limit-integration.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ on:
77
branches: [main, development, 'feature/**'] # Explicit branch filter prevents unexpected triggers
88
# Allow manual trigger for debugging
99
workflow_dispatch:
10+
inputs:
11+
image_tag:
12+
description: 'Docker image tag to test (e.g., pr-123-abc1234, latest)'
13+
required: false
14+
type: string
1015

1116
concurrency:
1217
group: ${{ github.workflow }}-${{ github.ref }}

.github/workflows/waf-integration.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ on:
77
branches: [main, development, 'feature/**'] # Explicit branch filter prevents unexpected triggers
88
# Allow manual trigger for debugging
99
workflow_dispatch:
10+
inputs:
11+
image_tag:
12+
description: 'Docker image tag to test (e.g., pr-123-abc1234, latest)'
13+
required: false
14+
type: string
1015

1116
concurrency:
1217
group: ${{ github.workflow }}-${{ github.ref }}

0 commit comments

Comments
 (0)