Skip to content

feat: add nightly scheduled workflow with nightly tag and Docker Hub push - #409

Open
wdconinc wants to merge 2 commits into
masterfrom
wdconinc-migrate-nightly-to-github-actions
Open

wdconinc wants to merge 2 commits into
masterfrom
wdconinc-migrate-nightly-to-github-actions

Conversation

@wdconinc

@wdconinc wdconinc commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

Overview

Migrate the nightly build scheduling from GitLab CI to GitHub Actions by establishing a dedicated nightly.yml workflow that runs on a daily cron schedule and calls the existing build-push.yml as 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.yml

  • Added on: workflow_call: trigger to enable reuse from nightly.yml
  • Removed every-6h schedule trigger (now owned by nightly.yml)
  • Added nightly input (boolean, default false) to control nightly tag generation and Docker Hub push
  • Added NIGHTLY env var to propagate the input into job context
  • Updated eic-manifest tag rules to add simple nightly tag (e.g., ghcr.io/eic/eic_ci:nightly) when both BUILD_TYPE == 'nightly' and NIGHTLY == 'true'
  • Made DH_PUSH conditional on nightly input: ${{ inputs.nightly && '1' || '0' }}

nightly.yml (new)

  • Runs on daily cron schedule: 0 2 * * * (2 AM UTC)
  • Calls build-push.yml with nightly: true to enable nightly tag generation and Docker Hub push
  • Passes secrets: inherit for registry access (Docker Hub credentials)
  • Can also be triggered manually via workflow_dispatch

.gitlab-ci.yml

  • Removed NIGHTLY and NIGHTLY_TAG variables from build matrix
  • Removed conditional nightly tag pushing logic in eic-manifest job
  • Nightly build jobs (BUILD_TYPE: nightly) remain active for local registry/GitLab caching but no longer push nightly-tagged images

How it works

  • Regular builds (push to master, PRs, manual dispatch): build-push.yml runs with default nightly: false
    • Only produces internal pipeline tags and version-based tags
    • Docker Hub push disabled
  • Nightly builds (daily cron): nightly.yml calls build-push.yml with nightly: true
    • Produces internal tags + simple nightly tag on ghcr.io and docker.io (eicweb account)
    • Uses existing BUILD_TYPE: [default, nightly] matrix which builds nightly content (latest main-branch SHAs of EDM4eic, EICrecon, epic)
    • Docker Hub push enabled for nightly-tagged images

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.

- 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>
Copilot AI lite review requested due to automatic review settings September 4, 2026 21:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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 calls build-push.yml as a reusable workflow with nightly: true.
  • Updated build-push.yml to support workflow_call with a boolean nightly input and to emit a raw nightly tag only when BUILD_TYPE == nightly and 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>
@wdconinc
wdconinc force-pushed the wdconinc-migrate-nightly-to-github-actions branch from 99203ea to 51fa3f3 Compare September 4, 2026 22:21
Copilot AI review requested due to automatic review settings September 4, 2026 22:21
@wdconinc wdconinc changed the title Migrate nightly scheduled job to GitHub Actions feat: migrate nightly scheduled job to GitHub Actions Sep 4, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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

Comment thread .github/workflows/build-push.yml Resolved
Comment thread .github/workflows/build-push.yml Resolved
@wdconinc wdconinc changed the title feat: migrate nightly scheduled job to GitHub Actions feat: add nightly scheduled workflow with nightly tag and Docker Hub push Sep 4, 2026
@github-actions

github-actions Bot commented Sep 5, 2026 •

Copy link
Copy Markdown
Contributor

Capybara summary for PR 409

@wdconinc
wdconinc requested review from a team and veprbl September 6, 2026 21:12
@wdconinc
wdconinc enabled auto-merge (squash) September 6, 2026 21:13

This branch was previously deployed

1 inactive deployment
github-pages — 51fa3f3a Deployed Sep 5, 2026 by wdconinc via deploy-artifacts-page #3994
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants