chore: Add scheduled workflow for nightly Docker image releases#6665
chore: Add scheduled workflow for nightly Docker image releases#6665
Conversation
Co-authored-by: louislam <1336778+louislam@users.noreply.github.com>
There was a problem hiding this comment.
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.ymlwith 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
| username: ${{ secrets.GHCR_USERNAME }} | ||
| password: ${{ secrets.GHCR_TOKEN }} |
There was a problem hiding this comment.
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.
| username: ${{ secrets.GHCR_USERNAME }} | |
| password: ${{ secrets.GHCR_TOKEN }} | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} |
There was a problem hiding this comment.
Ah... no permission, man, you are wrong.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Automates daily builds of
nightly2andnightly2-rootlessDocker images to Docker Hub and GitHub Container Registry.Changes
.github/workflows/nightly-release.ymlnpm run release-nightlyto build and push imagesworkflow_dispatchRequired Secrets
Configure in repository settings:
DOCKERHUB_USERNAME/DOCKERHUB_TOKEN- Docker Hub credentialsGHCR_USERNAME/GHCR_TOKEN- GitHub Container Registry credentials (token needswrite:packagesscope)Original prompt
💡 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.