Skip to content

feat(ci): add build workflow for GitHub Container Registry#1

Merged
rodrigoluizs merged 7 commits intobonial/mainfrom
rodrigoluizs/feat-adapt-build-workflow-ghcr
Mar 3, 2026
Merged

feat(ci): add build workflow for GitHub Container Registry#1
rodrigoluizs merged 7 commits intobonial/mainfrom
rodrigoluizs/feat-adapt-build-workflow-ghcr

Conversation

@rodrigoluizs
Copy link
Copy Markdown
Collaborator

@rodrigoluizs rodrigoluizs commented Feb 26, 2026

Summary

  • Add GitHub Actions workflow (build-ghcr.yml) to build and push Docker images to GHCR
  • Builds devlake (multi-arch: amd64/arm64), config-ui, and grafana dashboard images
  • Supports tag-based releases, branch builds, and PR preview images
  • Uses GHCR-native caching for builder and base stages

Test plan

  • Verify workflow triggers on push to main, release-*, feat-*, bugfix-* branches
  • Verify images are pushed to ghcr.io/<org>/devlake, ghcr.io/<org>/devlake-config-ui, ghcr.io/<org>/devlake-dashboard
  • Verify tag-based releases produce latest + versioned tags
  • Remove the pull_request trigger (marked as TODO) before merging

Created a build workflow to upload images to GitHub Container Registry (GHCR).
Changes include:
- Variables and secrets for GHCR authentication.
- Proper image tags and cache configuration.
@rodrigoluizs rodrigoluizs self-assigned this Feb 26, 2026
@rodrigoluizs rodrigoluizs marked this pull request as draft February 26, 2026 11:10
Rodrigo Silva added 5 commits February 26, 2026 12:14
Move permissions block to workflow level so all jobs inherit
packages:write (push to GHCR), contents:read (checkout), and
actions:write (cache deletion).
Replace slashes with dashes in ref_name to produce valid Docker tags
when building from branches like rodrigoluizs/feat-xxx.
Poetry 2.3.0 dropped Python 3.9 support. Without cache the installer
fetches the latest version (2.3.2), which fails on the python:3.9
base image. Pin to 2.2.1, the last release compatible with Python 3.9.
@rodrigoluizs rodrigoluizs force-pushed the rodrigoluizs/feat-adapt-build-workflow-ghcr branch from f3098d3 to 4776120 Compare February 27, 2026 18:10
@rodrigoluizs rodrigoluizs marked this pull request as ready for review February 27, 2026 18:51
@rodrigoluizs rodrigoluizs merged commit 912c74b into bonial/main Mar 3, 2026
13 checks passed
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