File tree Expand file tree Collapse file tree 6 files changed +90
-31
lines changed Expand file tree Collapse file tree 6 files changed +90
-31
lines changed Original file line number Diff line number Diff line change 1
- src
1
+ ! / target / * .jar
Original file line number Diff line number Diff line change
1
+ name : Build
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+ - test/*
8
+ tags :
9
+ - " [0-9]+.[0-9]+.[0-9]+"
10
+ pull_request :
11
+ branches : [ master ]
12
+
13
+ jobs :
14
+ build :
15
+
16
+ runs-on : ubuntu-latest
17
+
18
+ steps :
19
+ - uses : actions/checkout@v2
20
+
21
+ - name : Set up JDK 11
22
+ uses : actions/setup-java@v2
23
+ with :
24
+ java-version : ' 11'
25
+ distribution : ' adopt'
26
+ cache : maven
27
+
28
+ - name : Build with Maven
29
+ run : >
30
+ ./mvnw
31
+ -B
32
+ package
33
+
34
+ - name : Docker meta
35
+ id : meta
36
+ uses : docker/metadata-action@v3
37
+ with :
38
+ # list of Docker images to use as base name for tags
39
+ images : |
40
+ itzg/kidsbank-js
41
+
42
+ - name : Set up QEMU
43
+ uses : docker/setup-qemu-action@v1
44
+
45
+ - name : Set up Docker Buildx
46
+ uses : docker/setup-buildx-action@v1
47
+
48
+ - name : Login to DockerHub
49
+ if : github.event_name != 'pull_request'
50
+ uses : docker/login-action@v1
51
+ with :
52
+ username : ${{ secrets.DOCKER_USER }}
53
+ password : ${{ secrets.DOCKER_PASSWORD }}
54
+
55
+ - name : Build and push
56
+ uses : docker/build-push-action@v2
57
+ with :
58
+ context : .
59
+ push : ${{ github.event_name != 'pull_request' }}
60
+ tags : ${{ steps.meta.outputs.tags }}
61
+ labels : ${{ steps.meta.outputs.labels }}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ name : Prepare release
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ inputs :
6
+ release :
7
+ description : Version to release
8
+ required : true
9
+
10
+ jobs :
11
+ release :
12
+ runs-on : ubuntu-20.04
13
+ steps :
14
+ - uses : actions/checkout@v2
15
+
16
+ - name : Set up JDK
17
+ uses : actions/setup-java@v2
18
+ with :
19
+ java-version : ' 11'
20
+ distribution : ' adopt'
21
+ cache : maven
22
+
23
+ - name : Prepare release
24
+ run : |
25
+ git config --local user.name "Github Actions"
26
+ git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
27
+ ./mvnw -B release:prepare -DreleaseVersion=${{ github.event.inputs.release }}
Original file line number Diff line number Diff line change 147
147
</repositories >
148
148
149
149
<build >
150
- <finalName >${artifactId} </finalName >
150
+ <finalName >${project. artifactId} </finalName >
151
151
<plugins >
152
152
<plugin >
153
153
<groupId >org.springframework.boot</groupId >
You can’t perform that action at this time.
0 commit comments