Skip to content

Commit e17336b

Browse files
Sakib Rahmanclaude
andcommitted
Add workflow dispatch support for custom pipeline variables
- Add workflow_dispatch inputs for image_tag, detector_config, and detector_version - Make container image tag configurable via IMAGE_TAG variable in GitLab CI - Pass workflow inputs as variables to GitLab pipeline trigger - Set sensible defaults for all configurable variables This allows manual workflow triggers with custom container images and detector configurations while maintaining backward compatibility. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 2703dff commit e17336b

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

.github/workflows/mirror.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,22 @@ on:
44
delete:
55
push:
66
workflow_dispatch:
7+
inputs:
8+
image_tag:
9+
description: 'Container image tag'
10+
required: false
11+
default: 'nightly'
12+
type: string
13+
detector_config:
14+
description: 'Detector configuration'
15+
required: false
16+
default: 'epic_craterlake'
17+
type: string
18+
detector_version:
19+
description: 'Detector version'
20+
required: false
21+
default: 'main'
22+
type: string
723

824
concurrency:
925
group: mirror-${{ github.event_name }}
@@ -43,6 +59,9 @@ jobs:
4359
GITHUB_SHA=${{ github.event.pull_request.head.sha || github.sha }}
4460
GITHUB_PR=${{ github.event.pull_request.number }}
4561
PIPELINE_NAME=${{ github.repository }}: ${{ github.event.pull_request.title || github.ref_name }}
62+
IMAGE_TAG=${{ inputs.image_tag || 'nightly' }}
63+
DETECTOR_CONFIG=${{ inputs.detector_config || 'epic_craterlake' }}
64+
DETECTOR_VERSION=${{ inputs.detector_version || 'main' }}
4665
- name: Set pending EICweb status
4766
if: ${{ github.event_name != 'delete' }}
4867
env:

.gitlab-ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
image: eicweb.phy.anl.gov:4567/containers/eic_container/eic_xl:nightly
2-
31
variables:
2+
IMAGE_TAG: "nightly"
43
DETECTOR_CONFIG: "epic_craterlake"
54
DETECTOR_VERSION: "main"
65

6+
image: eicweb.phy.anl.gov:4567/containers/eic_container/eic_xl:${IMAGE_TAG}
7+
78
default:
89
timeout: 3 hours
910
artifacts:

0 commit comments

Comments
 (0)