Skip to content

Commit fc38898

Browse files
Sakib Rahmanclaude
andcommitted
Add configurable container name support
- Add workflow_dispatch input for container_name (default: eic_xl) - Add CONTAINER_NAME variable to GitLab CI (default: eic_xl) - Update image path to use ${CONTAINER_NAME} variable - Pass container_name from workflow to GitLab pipeline This allows switching between different container images like eic_xl and eic_ci via workflow dispatch. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent e17336b commit fc38898

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/mirror.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ on:
55
push:
66
workflow_dispatch:
77
inputs:
8+
container_name:
9+
description: 'Container name'
10+
required: false
11+
default: 'eic_xl'
12+
type: string
813
image_tag:
914
description: 'Container image tag'
1015
required: false
@@ -59,6 +64,7 @@ jobs:
5964
GITHUB_SHA=${{ github.event.pull_request.head.sha || github.sha }}
6065
GITHUB_PR=${{ github.event.pull_request.number }}
6166
PIPELINE_NAME=${{ github.repository }}: ${{ github.event.pull_request.title || github.ref_name }}
67+
CONTAINER_NAME=${{ inputs.container_name || 'eic_xl' }}
6268
IMAGE_TAG=${{ inputs.image_tag || 'nightly' }}
6369
DETECTOR_CONFIG=${{ inputs.detector_config || 'epic_craterlake' }}
6470
DETECTOR_VERSION=${{ inputs.detector_version || 'main' }}

.gitlab-ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
variables:
2+
CONTAINER_NAME: "eic_xl"
23
IMAGE_TAG: "nightly"
34
DETECTOR_CONFIG: "epic_craterlake"
45
DETECTOR_VERSION: "main"
56

6-
image: eicweb.phy.anl.gov:4567/containers/eic_container/eic_xl:${IMAGE_TAG}
7+
image: eicweb.phy.anl.gov:4567/containers/eic_container/${CONTAINER_NAME}:${IMAGE_TAG}
78

89
default:
910
timeout: 3 hours

0 commit comments

Comments
 (0)