-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (40 loc) · 1.12 KB
/
build.yaml
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
name: build
on:
push:
tags:
- v*
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: temurin
- run: mvn --batch-mode --update-snapshots package
- uses: docker/metadata-action@v4
id: metadata
with:
images: |
quay.io/rh_integration/3scale-fuse-camel-proxy
tags: |
type=semver,pattern={{version}}
type=sha
- uses: docker/setup-qemu-action@master
with:
platforms: ppc64le,s390x
- uses: docker/setup-buildx-action@master
- uses: docker/login-action@v1
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_ROBOT_TOKEN }}
- uses: docker/build-push-action@v2
with:
context: .
platforms: linux/amd64,linux/ppc64le,linux/s390x
tags: ${{ steps.metadata.outputs.tags }}
labels: ${{ steps.metadata.outputs.labels }}
push: true