|
29 | 29 | with:
|
30 | 30 | username: ${{ secrets.DOCKER_USERNAME }}
|
31 | 31 | password: ${{ secrets.DOCKER_PASSWORD }}
|
| 32 | + - name: Set up JDK 11 |
| 33 | + uses: actions/setup-java@v3 |
| 34 | + with: |
| 35 | + distribution: 'corretto' |
| 36 | + java-version: 11 |
| 37 | + - uses: actions/cache@v3 |
| 38 | + with: |
| 39 | + path: ~/.gradle/caches |
| 40 | + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} |
| 41 | + - name: Build serving package for nightly |
| 42 | + if: ${{ github.event.inputs.mode == '' || github.event.inputs.mode == 'nightly' }} |
| 43 | + run: | |
| 44 | + ./gradlew :serving:dockerDeb -Psnapshot |
32 | 45 | - name: Build and push nightly docker image
|
33 | 46 | if: ${{ github.event.inputs.mode == '' || github.event.inputs.mode == 'nightly' }}
|
34 | 47 | working-directory: serving/docker
|
@@ -94,6 +107,19 @@ jobs:
|
94 | 107 | with:
|
95 | 108 | username: ${{ secrets.DOCKER_USERNAME }}
|
96 | 109 | password: ${{ secrets.DOCKER_PASSWORD }}
|
| 110 | + - name: Set up JDK 11 |
| 111 | + uses: actions/setup-java@v3 |
| 112 | + with: |
| 113 | + distribution: 'corretto' |
| 114 | + java-version: 11 |
| 115 | + - uses: actions/cache@v3 |
| 116 | + with: |
| 117 | + path: ~/.gradle/caches |
| 118 | + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} |
| 119 | + - name: Build serving package for nightly |
| 120 | + if: ${{ github.event.inputs.mode == '' || github.event.inputs.mode == 'nightly' }} |
| 121 | + run: | |
| 122 | + ./gradlew :serving:dockerDeb -Psnapshot |
97 | 123 | - name: Build and push nightly docker image
|
98 | 124 | if: ${{ github.event.inputs.mode == '' || github.event.inputs.mode == 'nightly' }}
|
99 | 125 | working-directory: serving/docker
|
@@ -127,6 +153,19 @@ jobs:
|
127 | 153 | with:
|
128 | 154 | username: ${{ secrets.DOCKER_USERNAME }}
|
129 | 155 | password: ${{ secrets.DOCKER_PASSWORD }}
|
| 156 | + - name: Set up JDK 11 |
| 157 | + uses: actions/setup-java@v3 |
| 158 | + with: |
| 159 | + distribution: 'corretto' |
| 160 | + java-version: 11 |
| 161 | + - uses: actions/cache@v3 |
| 162 | + with: |
| 163 | + path: ~/.gradle/caches |
| 164 | + key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} |
| 165 | + - name: Build serving package for nightly |
| 166 | + if: ${{ github.event.inputs.mode == '' || github.event.inputs.mode == 'nightly' }} |
| 167 | + run: | |
| 168 | + ./gradlew :serving:dockerDeb -Psnapshot |
130 | 169 | - name: Build and push nightly docker image
|
131 | 170 | if: ${{ github.event.inputs.mode == '' || github.event.inputs.mode == 'nightly' }}
|
132 | 171 | working-directory: serving/docker
|
|
0 commit comments