-
Notifications
You must be signed in to change notification settings - Fork 21
47 lines (40 loc) · 1.21 KB
/
docker-image.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
name: Docker Image CI
on:
push:
branches: [ "main", "delta-oauth2.0" ]
pull_request:
branches: [ "main" ]
jobs:
build:
name: Build Image
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
strategy:
fail-fast: false
matrix:
language: [ 'java' ]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Java JDK
uses: actions/setup-java@v4
with:
java-version: 21
distribution: 'oracle'
check-latest: true
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file
# https://github.com/oktadev/auth0-full-stack-java-example/blob/main/.github/workflows/publish.yml
# - name: Set Swap Space
# if: runner.os == 'Linux'
# uses: pierotofy/set-swap-space@master
# with:
# swap-size-gb: 6
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: BuildImage
run: ./gradlew bootBuildImage
- name: Publish 2 MavenLocal
run: ./gradlew publishToMavenLocal