-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (39 loc) · 1.16 KB
/
gradle-client.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
name: Java CI
on:
push:
branches:
- main
- 'releases/**'
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: camunda-platform-client
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
~/.m2/repository
key: ${{ runner.os }}-gradle-test-${{ hashFiles('**/*.gradle') }}
restore-keys: |
${{ runner.os }}-gradle-test-
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Build And Push Docker Image (Server)
env:
DOCKER_REPOSITORY_PATH: ${{ secrets.DOCKER_REPOSITORY_PATH }}
TESTCONTAINERS_RYUK_DISABLED: true
run: |
export DOCKER_IMAGE=`echo "${DOCKER_REPOSITORY_PATH}/camunda-platform-client" | sed -e 's#//#/#' -e 's#^/##'`
./gradlew check dockerPush --no-daemon