kafka

Форк
0
/
docker_rc_release.yml 
64 строки · 2.5 Кб
1
# Licensed to the Apache Software Foundation (ASF) under one or more
2
# contributor license agreements.  See the NOTICE file distributed with
3
# this work for additional information regarding copyright ownership.
4
# The ASF licenses this file to You under the Apache License, Version 2.0
5
# (the "License"); you may not use this file except in compliance with
6
# the License.  You may obtain a copy of the License at
7
#
8
#    http://www.apache.org/licenses/LICENSE-2.0
9
#
10
# Unless required by applicable law or agreed to in writing, software
11
# distributed under the License is distributed on an "AS IS" BASIS,
12
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
# See the License for the specific language governing permissions and
14
# limitations under the License.
15

16
name: Build and Push Release Candidate Docker Image
17

18
on:
19
  workflow_dispatch:
20
    inputs:
21
      image_type:
22
        type: choice
23
        description: Docker image type to be built and pushed
24
        options: 
25
          - "jvm"
26
          - "native"
27
      rc_docker_image:
28
        description: RC docker image that needs to be built and pushed to Dockerhub (Example:- apache/kafka:3.8.0-rc0 (OR) apache/kafka-native:3.8.0-rc0)
29
        required: true
30
      kafka_url:
31
        description: Kafka url to be used to build the docker image
32
        required: true
33

34
jobs:
35
  release:
36
    if: github.repository == 'apache/kafka'
37
    runs-on: ubuntu-latest
38
    steps:
39
    - name: Checkout
40
      uses: actions/checkout@v4
41
    - name: Set up Python 3.10
42
      uses: actions/setup-python@v5
43
      with:
44
        python-version: "3.10"
45
    - name: Install dependencies
46
      run: |
47
        python -m pip install --upgrade pip
48
        pip install -r docker/requirements.txt
49
    - name: Set up QEMU
50
      uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3.2.0
51
    - name: Set up Docker Buildx
52
      uses: docker/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db # v3.6.1
53
    - name: Login to Docker Hub
54
      uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
55
      with:
56
        username: ${{ secrets.DOCKERHUB_USER }}
57
        password: ${{ secrets.DOCKERHUB_TOKEN }}
58
    - name: Release the RC docker image
59
      env:
60
        RC_DOCKER_IMAGE: ${{ github.event.inputs.rc_docker_image }}
61
        KAFKA_URL: ${{ github.event.inputs.kafka_url }}
62
        IMAGE_TYPE: ${{ github.event.inputs.image_type }}
63
      run: |
64
        python docker/docker_release.py $RC_DOCKER_IMAGE --kafka-url $KAFKA_URL --image-type $IMAGE_TYPE
65

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.