Skip to content

fix: correct CI template bugs for GitLab and GitHub Actions#3

Merged
damienlagae merged 1 commit intomainfrom
fix/ci-templates-bugs
Feb 26, 2026
Merged

fix: correct CI template bugs for GitLab and GitHub Actions#3
damienlagae merged 1 commit intomainfrom
fix/ci-templates-bugs

Conversation

@damienlagae
Copy link
Member

@damienlagae damienlagae commented Feb 26, 2026

Summary

  • GitLab CI: Replace Kaniko with Docker-in-Docker (docker:27 + docker:27-dind) for image builds, using CI_JOB_TOKEN auth instead of fragile base64-encoded CI_REGISTRY_PASSWORD credentials
  • GitHub Actions: Fix container.image reference — env.CI_IMAGE is not supported in container.image context (only github, needs, vars, secrets are). Use job outputs with ${GITHUB_REPOSITORY,,} for lowercase image name instead
  • GitHub Actions: Fix MySQL/MariaDB healthcheck — replace healthcheck.sh --connect --innodb_initialized (which exhausts retries during init) with mysqladmin ping with shorter interval and more retries

Test plan

  • All 168 existing unit tests pass
  • Generate a test project with GitLab CI + MySQL and verify the output
  • Generate a test project with GitHub Actions + MySQL and verify the output
  • Generate a test project with GitHub Actions + PostgreSQL and verify the output

- Replace Kaniko with Docker-in-Docker for GitLab CI image builds,
  using CI_JOB_TOKEN auth instead of fragile base64-encoded credentials
- Fix GitHub Actions container image reference: env.CI_IMAGE is not
  supported in container.image context, use job outputs instead
- Fix MySQL/MariaDB healthcheck in GitHub Actions: replace failing
  healthcheck.sh with mysqladmin ping and increase retries
@damienlagae damienlagae merged commit 95ca571 into main Feb 26, 2026
3 checks passed
@damienlagae damienlagae deleted the fix/ci-templates-bugs branch February 26, 2026 13:22
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.

1 participant