This is an automated email from the ASF dual-hosted git repository.
manikumar pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/kafka.git
The following commit(s) were added to refs/heads/trunk by this push:
new a1105c2dbe8 KAFKA-15880: Add Github Actions Workflow for Promoting an
RC docker image (#14941)
a1105c2dbe8 is described below
commit a1105c2dbe8846bf416cb9e9f416ff2e33fe7a17
Author: Vedarth Sharma <[email protected]>
AuthorDate: Thu Dec 7 11:51:32 2023 +0530
KAFKA-15880: Add Github Actions Workflow for Promoting an RC docker image
(#14941)
---
.github/workflows/docker_promote.yml | 41 ++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
diff --git a/.github/workflows/docker_promote.yml
b/.github/workflows/docker_promote.yml
new file mode 100644
index 00000000000..060048223af
--- /dev/null
+++ b/.github/workflows/docker_promote.yml
@@ -0,0 +1,41 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+name: Promote RC Docker Image
+
+on:
+ workflow_dispatch:
+ inputs:
+ rc_docker_image:
+ description: RC docker image that needs to be promoted to apache/kafka
+ required: true
+ promoted_docker_image:
+ description: Docker image name of the promoted image
+ required: true
+
+jobs:
+ promote:
+ if: github.repository == 'apache/kafka'
+ runs-on: ubuntu-latest
+ steps:
+ - name: Login to Docker Hub
+ uses: docker/login-action@v3
+ with:
+ username: ${{ secrets.DOCKERHUB_USERNAME }}
+ password: ${{ secrets.DOCKERHUB_TOKEN }}
+ - name: Copy RC Image to apache/kafka
+ uses: imjasonh/[email protected]
+ - run: |
+ crane copy ${{ github.event.inputs.rc_docker_image }} ${{
github.event.inputs.promoted_docker_image }}