Skip to content

Add Flink 1.17 release branch (#7) #19

Add Flink 1.17 release branch (#7)

Add Flink 1.17 release branch (#7) #19

Workflow file for this run

name: Build Docker images
on:
push:
branches: [main, release-*]
pull_request:
branches: [main, release-*]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
strategy:
matrix:
include:
- tag: 1.17.2-python3.10
args: ''
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Collect Docker metadata
id: metadata
uses: docker/metadata-action@v3
with:
images: |
ghcr.io/lakehq/flink
tags: |
${{ matrix.tag }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
build-args: ${{ matrix.args }}
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.metadata.outputs.tags }}
labels: ${{ steps.metadata.outputs.labels }}
provenance: mode=max
cache-from: |
type=registry,ref=ghcr.io/lakehq/flink-build-cache:main-${{ matrix.tag }}
type=registry,ref=ghcr.io/lakehq/flink-build-cache:${{ github.event_name == 'pull_request' && github.head_ref || github.ref_name }}-${{ matrix.tag }}
cache-to: |
type=registry,ref=ghcr.io/lakehq/flink-build-cache:${{ github.event_name == 'pull_request' && github.head_ref || github.ref_name }}-${{ matrix.tag }},mode=max