-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (36 loc) · 1.04 KB
/
docker-publish.yml
File metadata and controls
44 lines (36 loc) · 1.04 KB
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
name: Publish Docker Image
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build-and-publish:
runs-on: ubuntu-latest
strategy:
matrix:
SQRL_VERSION: [0.5.6, 0.5.7]
env:
DOCKER_REPO: datasqrl/flink-jar-runner
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Pull base images
run: |
docker pull gradle:8.6-jdk11
docker pull flink:1.19.1-scala_2.12-java11
- name: Build and push Docker image
working-directory: flink-dockerfile-example
run: |
DOCKER_TAG=$DOCKER_TAG:0.0.1-RC1-sqrl${{ matrix.SQRL_VERSION }}
docker build --build-arg SQRL_VERSION=${{ matrix.SQRL_VERSION }} -t $DOCKER_TAG .
docker push $TAG