Skip to content

Conversation

@RazvanLiviuVarzaru
Copy link
Collaborator

@RazvanLiviuVarzaru RazvanLiviuVarzaru commented Sep 1, 2025

Quick recap on how images are deployed to production:

  1. On Pull Request : an image is only built
  2. On Push to DEV branch: the image is built and pushed to quay / ghcr but with a dev_ prefix tag. buildbot.dev.mariadb.org uses images starting withdev_
  3. On push to MAIN branch: the dev_ tag is moved in quay / ghcr replacing the production image that doesn't have dev_ in its name. buildbot.mariadb.org looks for images not having dev_ in their name.

On schedule goal:

  • on schedule event (which by GitHub laws is triggered on the default branch >>dev<<). We want to build the container image, push it to dev and then deploy it to prod.

Framework:
The dispatcher is scheduled to run on the third of the month. Child workflows having is_scheduled_event input will be triggered.

In the child workflow only the images with deploy_on_schedule: true are rebuilt.

In the workflow template bbw_build_container_template.yml:

  • the job runs if the run is scheduled and the matrix item has deploy_on_schedule: true or for any other event type (pull request, push)

If is_scheduled_event is True then tags are moved to Production.

Copy link
Member

@grooverdan grooverdan left a comment

Choose a reason for hiding this comment

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

very optional comment.

Thanks!

@RazvanLiviuVarzaru RazvanLiviuVarzaru force-pushed the MDBF-1109 branch 2 times, most recently from c47b78f to d9d5ad6 Compare September 2, 2025 13:22
@fauust
Copy link
Collaborator

fauust commented Sep 2, 2025

Very good doc, can you create a link from the README.md file that is in the root of the repo? I will handle the cleaning of this file when I find time.

[skip ci]

Quick recap on how images are deployed to production:
1. On Pull Request : an image is only built
2. On Push to DEV branch: the image is built and pushed to quay / ghcr but with a `dev_` prefix tag. `buildbot.dev.mariadb.org` uses images starting with`dev_`
3. On push to MAIN branch: the `dev_`  tag is moved in quay / ghcr replacing the production image that doesn't have `dev_` in its name. `buildbot.mariadb.org` looks for images not having `dev_` in their name.

On schedule goal:
- on schedule event (which by GitHub laws is triggered on the default branch >>dev<<). We want to build the container image, push it to dev and then deploy it to prod.

Framework:
The dispatcher is scheduled to run on the third of the month. Child workflows having `is_scheduled_event` input will be triggered.

In the child workflow only the images with `deploy_on_schedule: true` are rebuilt.

In the workflow template `bbw_build_container_template.yml`:
-  the job runs if the run is scheduled and the matrix item has 'deploy_on_schedule: true` or for any other event type (pull request, push)

If `is_scheduled_event` is True then tags are moved to Production.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants