-
Notifications
You must be signed in to change notification settings - Fork 103
78 lines (75 loc) · 2.45 KB
/
release-manual-docker-flink-cdc.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# 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: Release-Docker-Flink-CDC
on:
workflow_dispatch:
inputs:
flinkCDCVersion:
description: 'flink-cdc version'
required: true
default: '3.1.1'
type: choice
options:
- 3.1.1
flinkVersion:
description: 'flink version'
required: true
default: '1.18'
type: choice
options:
- 1.18
env:
HUB: ghcr.io/flowerfine/scaleph-flink-cdc
FLINK_CDC_VERSION: ${{ inputs.flinkCDCVersion }}
FLINK_VERSION: ${{ inputs.flinkVersion }}
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
timeout-minutes: 360
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Log in to the Container registry
uses: docker/login-action@3
with:
registry: ${{ env.HUB }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: amd64,arm64
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build image
uses: docker/build-push-action@v5
with:
no-cache: false
cache-from: type=gha
cache-to: type=gha
push: true
context: .
build-args: |
FLINK_VERSION=${{ env.FLINK_VERSION }}
FLINK_CDC_VERSION=${{ env.FLINK_CDC_VERSION }}
platforms: linux/amd64,linux/arm64
file: tools/docker/build/flink-cdc/Dockerfile
tags: ${{ env.HUB }}:${{ env.FLINK_CDC_VERSION }}-flink-${{ env.FLINK_VERSION }}