Repository navigation
Conversation
- Add workflow_call trigger to build-push.yml with nightly input (boolean, default false) - Add NIGHTLY env var that propagates the nightly input to job steps - Add simple 'nightly' tag in eic-manifest tags (enabled when BUILD_TYPE==nightly && NIGHTLY==true) This produces tags like: ghcr.io/eic/eic_ci:nightly - Remove every-6h schedule from build-push.yml (nightly.yml owns scheduled runs) - Create nightly.yml that calls build-push.yml on daily cron (0 2 * * *) with nightly: true - DH_PUSH remains at 0; no Docker Hub push for now (can be enabled later) The existing BUILD_TYPE: [default, nightly] matrix already builds nightly content (latest main-branch SHAs of EDM4eic, EICrecon, epic via scripts/build-eic.sh). This change adds the scheduling trigger and the simple nightly tag for EIC images. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🟢 Approval recommended
The workflow changes are internally consistent (new scheduler + reusable call + tag gating) and cleanly remove the superseded GitLab nightly-tag mechanism.
Pull request overview
This PR consolidates nightly container build scheduling onto GitHub Actions by introducing a dedicated scheduled workflow that reuses the existing build/push workflow, and by gating creation of the simple :nightly tag behind an explicit workflow input.
Changes:
- Added a new scheduled GitHub Actions workflow (
nightly.yml) that runs daily and callsbuild-push.ymlas a reusable workflow withnightly: true. - Updated
build-push.ymlto supportworkflow_callwith a booleannightlyinput and to emit a rawnightlytag only whenBUILD_TYPE == nightlyand the input is enabled. - Removed the GitLab CI variables and manifest-tagging logic that previously handled GitLab-driven nightly tagging.
File summaries
| File | Description |
|---|---|
.gitlab-ci.yml |
Removes GitLab CI’s NIGHTLY/NIGHTLY_TAG plumbing and the nightly-tag manifest publishing block. |
.github/workflows/nightly.yml |
Adds daily cron + manual dispatch workflow that calls the reusable build/push workflow with nightly tagging enabled. |
.github/workflows/build-push.yml |
Adds workflow_call support and gates creation of the simple :nightly tag behind the new input. |
Review details
- Files reviewed: 3/3 changed files
- Comments generated: 0
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
…push - Add workflow_call trigger to build-push.yml with nightly input (boolean, default false) - Add NIGHTLY env var that propagates the nightly input to job steps - Add simple 'nightly' tag in eic-manifest tags (enabled when BUILD_TYPE==nightly && NIGHTLY==true) This produces tags like: ghcr.io/eic/eic_ci:nightly - Enable DH_PUSH (Docker Hub push) when nightly: true When nightly builds run, images are pushed to docker.io/eicweb with nightly tags - Remove every-6h schedule from build-push.yml (nightly.yml owns scheduled runs) - Create nightly.yml that calls build-push.yml on daily cron (0 2 * * *) with nightly: true - Pass secrets: inherit so Docker Hub credentials (DH_EICWEB_TOKEN) flow through The existing BUILD_TYPE: [default, nightly] matrix already builds nightly content (latest main-branch SHAs of EDM4eic, EICrecon, epic via scripts/build-eic.sh). This change adds the scheduling trigger, the nightly tag, and Docker Hub push. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
99203ea to
51fa3f3
Compare
There was a problem hiding this comment.
🟡 Changes recommended
The reusable workflow interface and nightly/Docker Hub push behavior need to be clarified and adjusted to avoid unintended publishing and ensure stable invocation from nightly.yml.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Review details
- Files reviewed: 3/3 changed files
- Comments generated: 2
- Review effort level: Lite
Overview
Migrate the nightly build scheduling from GitLab CI to GitHub Actions by establishing a dedicated
nightly.ymlworkflow that runs on a daily cron schedule and calls the existingbuild-push.ymlas a reusable workflow.Motivation
The nightly build is currently triggered via a GitLab CI scheduled pipeline with
NIGHTLY=1. This change consolidates build orchestration onto GitHub Actions, making it easier to maintain a single source of truth for container build workflows.Changes
build-push.ymlon: workflow_call:trigger to enable reuse fromnightly.ymlnightly.yml)nightlyinput (boolean, default false) to control nightly tag generation and Docker Hub pushNIGHTLYenv var to propagate the input into job contexteic-manifesttag rules to add simplenightlytag (e.g.,ghcr.io/eic/eic_ci:nightly) when bothBUILD_TYPE == 'nightly'andNIGHTLY == 'true'DH_PUSHconditional on nightly input:${{ inputs.nightly && '1' || '0' }}nightly.yml(new)0 2 * * *(2 AM UTC)build-push.ymlwithnightly: trueto enable nightly tag generation and Docker Hub pushsecrets: inheritfor registry access (Docker Hub credentials)workflow_dispatch.gitlab-ci.ymlNIGHTLYandNIGHTLY_TAGvariables from build matrixBUILD_TYPE: nightly) remain active for local registry/GitLab caching but no longer push nightly-tagged imagesHow it works
build-push.ymlruns with defaultnightly: falsenightly.ymlcallsbuild-push.ymlwithnightly: truenightlytag on ghcr.io and docker.io (eicweb account)BUILD_TYPE: [default, nightly]matrix which builds nightly content (latest main-branch SHAs of EDM4eic, EICrecon, epic)Future work
Once this is validated on master, the GitLab CI nightly scheduled job can be disabled since nightly scheduling now happens via GitHub Actions.