File tree Expand file tree Collapse file tree 4 files changed +49
-17
lines changed Expand file tree Collapse file tree 4 files changed +49
-17
lines changed Original file line number Diff line number Diff line change
1
+ .git
1
2
.gitignore
2
3
.dockerignore
3
4
4
5
Dockerfile
5
6
Dockerfile. *
6
7
.github /
7
8
9
+ .devcontainer /
10
+
11
+ * /bin
12
+ * /build
13
+ * /out
14
+
15
+ docs /
16
+
17
+ gg.cmd
18
+ gradlew.bat
19
+
8
20
# no generated files in version control
9
21
src /main /gen /
10
22
src /main /generated /
11
23
src-gen /
12
24
13
- src /main /resources /csl-styles
14
- src /main /resources /csl-locales
15
- buildres /abbrv.jabref.org
16
-
17
- jablib /src /main /resources /csl-styles
18
- jablib /src /main /resources /csl-locales
19
-
20
25
.lycheecache
21
26
22
27
.kotlin
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ name: Docker Images
3
3
on :
4
4
pull_request :
5
5
paths :
6
+ - ' .dockerignore'
6
7
- ' .github/workflows/dockerimages.yml'
7
8
- ' Dockerfile.*'
8
9
push :
51
52
uses : docker/setup-qemu-action@v3
52
53
- name : Set up Docker Buildx
53
54
uses : docker/setup-buildx-action@v3
55
+ - name : Fetch all history for all tags and branches
56
+ uses : actions/checkout@v4
57
+ with :
58
+ fetch-depth : 0
59
+ submodules : ' true'
60
+ show-progress : ' false'
61
+ - name : Install GitVersion
62
+ uses : gittools/actions/gitversion/setup@v3.2.1
63
+ with :
64
+ versionSpec : " 5.x"
65
+ - name : Run GitVersion
66
+ id : gitversion
67
+ uses : gittools/actions/gitversion/execute@v3.2.1
54
68
- name : Build and push
55
69
uses : docker/build-push-action@v6
56
70
with :
63
77
tags : ${{ steps.meta.outputs.tags }}
64
78
labels : ${{ steps.meta.outputs.labels }}
65
79
file : Dockerfile.${{ matrix.component }}
80
+ build-args : |
81
+ VERSION=${{ steps.gitversion.outputs.AssemblySemVer }}
82
+ VERSION_INFO=${{ steps.gitversion.outputs.InformationalVersion }}
Original file line number Diff line number Diff line change 1
1
FROM gradle:jdk24-noble AS build
2
2
3
- WORKDIR /app
3
+ LABEL org.opencontainers.image.title="jabkit"
4
+ LABEL org.opencontainers.image.description="JabRef's CLI tool"
4
5
5
- COPY . .
6
+ ARG VERSION="100.0.0"
7
+ ARG VERSION_INFO="100.0.0"
8
+ ARG TAG_BUILD="false"
9
+
10
+ WORKDIR /build
6
11
7
- RUN gradle --no-daemon :jabkit:jpackage
12
+ COPY . .
8
13
9
- RUN find jabkit/build/distribution
14
+ RUN gradle --no-daemon -PprojVersion="${VERSION}" -PprojVersionInfo="${VERSION_INFO}" -Ptagbuild="${TAG_BUILD}" : jabkit:jpackage
10
15
11
16
RUN mkdir /dist
12
17
13
- RUN mv jabkit/build/distribution/jabkit /dist
18
+ RUN mv jabkit/build/packages/*/* /dist
14
19
15
20
# jpackage needs glibc; alpine does not work
16
21
FROM debian:bookworm-slim AS runtime
Original file line number Diff line number Diff line change 1
1
FROM gradle:jdk24-noble AS build
2
2
3
- WORKDIR /app
3
+ LABEL org.opencontainers.image.title="jabsrv"
4
+ LABEL org.opencontainers.image.description="JabRef's HTTP server"
4
5
5
- COPY . .
6
+ ARG VERSION="100.0.0"
7
+ ARG VERSION_INFO="100.0.0"
8
+ ARG TAG_BUILD="false"
9
+
10
+ WORKDIR /build
6
11
7
- RUN gradle --no-daemon :jabsrv-cli:jpackage
12
+ COPY . .
8
13
9
- RUN find jabsrv-cli/build/distribution
14
+ RUN gradle --no-daemon -PprojVersion="${VERSION}" -PprojVersionInfo="${VERSION_INFO}" -Ptagbuild="${TAG_BUILD}" : jabsrv-cli:jpackage
10
15
11
16
RUN mkdir /dist
12
17
13
- RUN mv jabsrv-cli/build/distribution/jabsrv /dist
18
+ RUN mv jabsrv-cli/build/packages/*/* /dist
14
19
15
20
# jpackage needs glibc; alpine does not work
16
21
FROM debian:bookworm-slim AS runtime
You can’t perform that action at this time.
0 commit comments