Skip to content

Docker-Build-Seatunnel #27

Docker-Build-Seatunnel

Docker-Build-Seatunnel #27

# 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: Docker-Build-Seatunnel
on:
workflow_dispatch:
inputs:
seatunnelVersion:
description: 'seatunnel version'
required: true
default: '2.3.2'
type: choice
options:
- 2.3.2
flinkVersion:
description: 'flink version'
required: true
default: '1.15'
type: choice
options:
- 1.15
env:
HUB: ghcr.io/flowerfine/scaleph-seatunnel
SEATUNNEL_VERSION: ${{ inputs.seatunnelVersion }}
FLINK_VERSION: ${{ inputs.flinkVersion }}
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
timeout-minutes: 30
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Log in to the Container registry
uses: docker/[email protected]
with:
registry: ${{ env.HUB }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
platforms: amd64,arm64
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build image
uses: docker/build-push-action@v4
with:
no-cache: true
push: true
context: .
build-args: |
FLINK_VERSION=${{ env.FLINK_VERSION }},
SEATUNNEL_VERSION=${{ env.SEATUNNEL_VERSION }}
platforms: linux/amd64,linux/arm64
file: tools/docker/build/scaleph-seatunnel/Dockerfile
tags: ${{ env.HUB }}:${{ env.SEATUNNEL_VERSION }}-flink-${{ env.FLINK_VERSION }}