Skip to content

chore: Add scheduled workflow for nightly Docker image releases#6665

Merged
louislam merged 3 commits intomasterfrom
copilot/create-nightly-release-workflow
Jan 10, 2026
Merged

chore: Add scheduled workflow for nightly Docker image releases#6665
louislam merged 3 commits intomasterfrom
copilot/create-nightly-release-workflow

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jan 10, 2026

Automates daily builds of nightly2 and nightly2-rootless Docker images to Docker Hub and GitHub Container Registry.

Changes

  • New workflow: .github/workflows/nightly-release.yml
    • Scheduled daily at 02:00 UTC via cron
    • Sets up Docker Buildx with QEMU for multi-platform builds (amd64, arm64, armv7)
    • Authenticates to both registries using secrets
    • Executes npm run release-nightly to build and push images
    • Includes manual trigger option via workflow_dispatch

Required Secrets

Configure in repository settings:

  • DOCKERHUB_USERNAME / DOCKERHUB_TOKEN - Docker Hub credentials
  • GHCR_USERNAME / GHCR_TOKEN - GitHub Container Registry credentials (token needs write:packages scope)
Original prompt

Create a workflow, run npm run release-nightly at 2:00 am everyday, the script will build and push the nightly2 docker image to Docker Hub and GitHub Registry. I probably need to provide auth token in secret. Please let me know the secret name that I have to set.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: louislam <1336778+louislam@users.noreply.github.com>
Copilot AI changed the title [WIP] Add workflow for nightly release of docker image Add scheduled workflow for nightly Docker image releases Jan 10, 2026
Copilot AI requested a review from louislam January 10, 2026 08:21
@louislam louislam changed the title Add scheduled workflow for nightly Docker image releases chore: Add scheduled workflow for nightly Docker image releases Jan 10, 2026
@louislam louislam marked this pull request as ready for review January 10, 2026 08:28
Copilot AI review requested due to automatic review settings January 10, 2026 08:28
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds automated nightly Docker image builds for Uptime Kuma, scheduled to run daily at 02:00 UTC. The workflow builds and publishes nightly2 and nightly2-rootless images to Docker Hub and GitHub Container Registry.

Changes:

  • Adds .github/workflows/nightly-release.yml with scheduled and manual triggers
  • Configures multi-platform Docker builds (amd64, arm64, armv7) using QEMU and Buildx
  • Sets up authentication for Docker Hub and GitHub Container Registry

Comment on lines +39 to +40
username: ${{ secrets.GHCR_USERNAME }}
password: ${{ secrets.GHCR_TOKEN }}
Copy link

Copilot AI Jan 10, 2026

Choose a reason for hiding this comment

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

For GitHub Container Registry authentication, you can use the built-in GITHUB_TOKEN instead of requiring separate GHCR_USERNAME and GHCR_TOKEN secrets. This is the recommended approach for GitHub Actions workflows and simplifies configuration. Change the username to use github.actor and password to use secrets.GITHUB_TOKEN, which is automatically available in all GitHub Actions workflows with the packages: write permission already set.

Suggested change
username: ${{ secrets.GHCR_USERNAME }}
password: ${{ secrets.GHCR_TOKEN }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Ah... no permission, man, you are wrong.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@louislam louislam merged commit 63ea08a into master Jan 10, 2026
16 of 22 checks passed
@louislam louislam deleted the copilot/create-nightly-release-workflow branch January 10, 2026 08:32
@CommanderStorm CommanderStorm added this to the 2.1.0 milestone Jan 12, 2026
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.

4 participants