-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove building from running time (#155)
Part of #4. Thanks to this, the users don't need to wait for the project to build with Gradle, which took around 1-2 minutes. Now it takes a few seconds to build the Docker image, and under 1 second to run the action itself.
- Loading branch information
Showing
11 changed files
with
58 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,6 @@ | ||
FROM gradle:8.4.0-jdk17 AS build | ||
COPY --chown=gradle:gradle . /src | ||
WORKDIR /src | ||
RUN gradle build --no-daemon | ||
RUN rm -rf dist | ||
RUN unzip build/distributions/github-actions-typing.zip -d dist | ||
|
||
FROM eclipse-temurin:21.0.1_12-jre | ||
RUN mkdir /app | ||
COPY --from=build /src/dist/github-actions-typing/lib/*.jar /app/ | ||
COPY dist/github-actions-typing/lib/*.jar /app/ | ||
WORKDIR /app | ||
|
||
ENTRYPOINT ["java", "-cp", "/app/*", "it.krzeminski.githubactionstyping.MainKt"] |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+407 KB
dist/github-actions-typing/lib/kotlinx-serialization-core-jvm-1.5.1.jar
Binary file not shown.
Binary file not shown.