Adds Docker file and Woodpecker integration
All checks were successful
ci/woodpecker/manual/woodpecker Pipeline was successful

This commit is contained in:
aarbit 2025-02-19 09:28:32 -06:00
parent 32f29b4795
commit 7ae491da43
2 changed files with 42 additions and 0 deletions

15
.woodpecker.yaml Normal file
View File

@ -0,0 +1,15 @@
when:
branch: main
event:
- push
- manual
steps:
- name: build
image: woodpeckerci/plugin-docker-buildx
settings:
repo: git.halfbinary.net/${CI_REPO_OWNER}/tmnt-api
registry: git.halfbinary.net
tags: ${CI_PIPELINE_NUMBER}
username: ${CI_REPO_OWNER}
password:
from_secret: docker_password

27
Dockerfile Normal file
View File

@ -0,0 +1,27 @@
FROM amazoncorretto:21-alpine-jdk as build
LABEL maintainer="Alex Arbit <aarbit@gmail.com>"
WORKDIR /app
COPY build.gradle.kts .
COPY gradlew .
COPY gradlew.bat .
COPY settings.gradle.kts .
COPY gradle ./gradle
COPY src ./src
RUN apk --no-cache add gradle
RUN gradle bootJar
RUN ls -al
RUN ls -al /
FROM amazoncorretto:21-alpine-jdk
COPY --from=build /app/build/libs/*.jar app.jar
RUN ls -al
EXPOSE 8080
ENTRYPOINT ["java","-jar","app.jar"]