-
Notifications
You must be signed in to change notification settings - Fork 16
47 lines (37 loc) · 1.23 KB
/
maven.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
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Java CI with Maven
on:
push:
branches: [ master ]
jobs:
deploy:
if: github.repository == 'OneCricketeer/apache-kafka-connect-docker'
runs-on: ubuntu-latest
env:
BUILDX_PLATFORMS: linux/amd64,linux/arm64
steps:
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'corretto'
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: cricketeerone
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
platforms: ${{ env.BUILDX_PLATFORMS }}
# - name: Build & Push (ubuntu)
# run: make
- name: Build & Push - Alpine
run: make buildx-confluent-hub-alpine
# overrides 'latest' tag created in previous step
- name: Build & Push - Ubuntu (override latest)
run: make