Adds Docker file and Woodpecker integration
All checks were successful
ci/woodpecker/manual/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/manual/woodpecker Pipeline was successful
This commit is contained in:
parent
32f29b4795
commit
7ae491da43
15
.woodpecker.yaml
Normal file
15
.woodpecker.yaml
Normal 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
27
Dockerfile
Normal 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"]
|
||||||
Loading…
x
Reference in New Issue
Block a user