Skip to content

KAFKA-19686 : release - Trigger docker builds with rc and release#21963

Open
muralibasani wants to merge 2 commits intoapache:trunkfrom
muralibasani:KAFKA-19686
Open

KAFKA-19686 : release - Trigger docker builds with rc and release#21963
muralibasani wants to merge 2 commits intoapache:trunkfrom
muralibasani:KAFKA-19686

Conversation

@muralibasani
Copy link
Copy Markdown
Contributor

@muralibasani muralibasani commented Apr 4, 2026

https://issues.apache.org/jira/browse/KAFKA-19686

How It Works After the RC tag is
pushed, the script:

  • Asks the user: "Trigger Docker image build workflows?" - If yes —
    collects user's GitHub token, triggers docker_build_and_test.yml for
    both JVM and native - Asks: "Also trigger Docker
    RC release workflows?"

  • If yes — triggers docker_rc_release.yml for both JVM and native with
    the correct image names (apache/kafka, apache/kafka-native) -
    Can be run in dry run mode too

    Both steps are optional (behind confirm() prompts), so the existing
    flow is unchanged if the user declines. No new dependencies were added —
    only Python stdlib urllib is used.

Test runs :


cd release

GITHUB_DRY_RUN=true python3 -c " import github
github.trigger_docker_build_test('fake', '4.3', 'jvm',
'https://dist.apache.org/repos/dist/dev/kafka/4.3.0-rc0/kafka_2.13-4.3.0.tgz')
"

--- Docker Build Test (jvm) ---
  Image type : jvm
  Branch/ref : 4.3
  Kafka URL  :
https://dist.apache.org/repos/dist/dev/kafka/4.3.0-rc0/kafka_2.13-4.3.0.tgz
Triggering workflow docker_build_and_test.yml on apache/kafka with
inputs: {"image_type": "jvm", "kafka_url":
"https://dist.apache.org/repos/dist/dev/kafka/4.3.0-rc0/kafka_2.13-4.3.0.tgz"}
[DRY RUN] POST
https://api.github.com/repos/apache/kafka/actions/workflows/docker_build_and_test.yml/dispatches
[DRY RUN] Body: {
  "ref": "4.3",
  "inputs": {
    "image_type": "jvm",
    "kafka_url":
"https://dist.apache.org/repos/dist/dev/kafka/4.3.0-rc0/kafka_2.13-4.3.0.tgz"
  }
}
Successfully triggered docker_build_and_test.yml

++++++++++++++++++++++++++++++++++++++++++++++

GITHUB_DRY_RUN=true python3 -c " import github
github.trigger_docker_rc_release('fake', '4.3', 'native',
'apache/kafka-native:4.3.0-rc0',
'https://dist.apache.org/repos/dist/dev/kafka/4.3.0-rc0/kafka_2.13-4.3.0.tgz')
"

--- Docker RC Release (native) ---
  Image type   : native
  Docker image : apache/kafka-native:4.3.0-rc0
  Branch/ref   : 4.3
  Kafka URL    :
https://dist.apache.org/repos/dist/dev/kafka/4.3.0-rc0/kafka_2.13-4.3.0.tgz
Triggering workflow docker_rc_release.yml on apache/kafka with inputs:
{"image_type": "native", "rc_docker_image":
"apache/kafka-native:4.3.0-rc0", "kafka_url":
"https://dist.apache.org/repos/dist/dev/kafka/4.3.0-rc0/kafka_2.13-4.3.0.tgz"}
[DRY RUN] POST
https://api.github.com/repos/apache/kafka/actions/workflows/docker_rc_release.yml/dispatches
[DRY RUN] Body: {
  "ref": "4.3",
  "inputs": {
    "image_type": "native",
    "rc_docker_image": "apache/kafka-native:4.3.0-rc0",
    "kafka_url":
"https://dist.apache.org/repos/dist/dev/kafka/4.3.0-rc0/kafka_2.13-4.3.0.tgz"
  }
}
Successfully triggered docker_rc_release.yml

@github-actions github-actions bot added the triage PRs from the community label Apr 4, 2026
@muralibasani muralibasani changed the title KAFKA-19686 : Trigger docker builds with rc and release KAFKA-19686 : release - Trigger docker builds with rc and release Apr 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-approved triage PRs from the community

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants