preparing for gitea action workflow

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2026-01-04 20:48:57 +01:00
parent f80e6d9ea4
commit de98c400c7
2 changed files with 7 additions and 16 deletions

View File

@@ -1,26 +1,17 @@
FROM alpine AS build FROM alpine AS build
RUN apk update \ RUN apk update apk add openjdk21-jre
&& apk add openjdk21-jre RUN apk add bash git
RUN apk add bash clang-extra-tools git
ADD . /OpenCloudCal ADD . /OpenCloudCal
WORKDIR /OpenCloudCal WORKDIR /OpenCloudCal
RUN VERSION=$(clang-format --version | sed -e "s/.* //g") && sed -i "s|clangFormat(.*).style|clangFormat(\"$VERSION\").style|g" build.gradle.kts
RUN ./gradlew build RUN ./gradlew build
RUN mv *app/build/distributions/*.zip /occ.zip RUN mv *app/build/distributions/*.zip /occ.zip
FROM alpine FROM alpine
RUN apk update \ RUN apk update apk add bash openjdk21-jre
&& apk add bash openjdk21-jre
COPY --from=build /occ.zip /opt/occ.zip COPY --from=build /occ.zip /opt/occ.zip
RUN cd /opt \ RUN cd /opt && unzip occ.zip && mv de.srsoftware.cal.app occ && rm *.zip
&& unzip occ.zip \
&& mv de.srsoftware.cal.app occ \
&& rm *.zip
WORKDIR /opt/occ WORKDIR /opt/occ
RUN mkdir lib/importers \ RUN mkdir lib/importers && cp lib/*importer*jar lib/importers/
&& cp lib/*importer*jar lib/importers/ RUN adduser -S occ && ln -s /data /home/occ/.config
RUN adduser -S occ \
&& ln -s /data /home/occ/.config
USER occ USER occ
ENTRYPOINT /opt/occ/bin/de.srsoftware.cal.app ENTRYPOINT /opt/occ/bin/de.srsoftware.cal.app

View File

@@ -11,7 +11,7 @@ spotless {
target("**/src/**/java/**/*.java") target("**/src/**/java/**/*.java")
removeUnusedImports() removeUnusedImports()
importOrder() importOrder()
licenseHeader("/* © SRSoftware 2024 */") licenseHeader("/* © SRSoftware 2026 */")
} }
} }