-
Notifications
You must be signed in to change notification settings - Fork 13
40 lines (35 loc) · 1.14 KB
/
build-test-matrix.yaml
File metadata and controls
40 lines (35 loc) · 1.14 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
name: Build test matrix images
on:
push:
paths:
- 'smoke-tests/matrix/**'
- '.github/workflows/build-test-matrix.yaml'
branches: 'main'
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11 for running Gradle
uses: actions/setup-java@v2
with:
distribution: adopt
java-version: 11
- name: Cache gradle dependencies
uses: burrunan/gradle-cache-action@v1.6
with:
job-id: matrix-smoke
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_PUBLISH_USER }}
password: ${{ secrets.DOCKERHUB_PUBLISH_TOKEN }}
- name: Build Docker Image
run: |
TAG="$(date '+%Y%m%d').$GITHUB_RUN_ID"
echo "Using extra tag $TAG"
./gradlew buildMatrix pushMatrix -PextraTag=$TAG
working-directory: smoke-tests/matrix
env:
JVM_OPTS: -Xmx1g --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED