This commit is contained in:
@@ -7,13 +7,12 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Setup Go
|
- name: Setup Java
|
||||||
uses: actions/setup-go@v5
|
uses: actions/setup-java@v4
|
||||||
with:
|
with:
|
||||||
go-version: '>=1.24'
|
distribution: 'temurin' # See 'Supported distributions' for available options
|
||||||
|
java-version: '21'
|
||||||
|
cache: 'gradle'
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: go build .
|
run: ./gradlew build --no-daemon
|
||||||
|
|
||||||
- name: Test
|
|
||||||
run: go test . -v
|
|
||||||
|
|||||||
9
Dockerfile
Normal file
9
Dockerfile
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
FROM eclipse-temurin:21-jdk-alpine AS builder
|
||||||
|
WORKDIR /app
|
||||||
|
COPY . /app
|
||||||
|
RUN ./gradlew jar --no-daemon
|
||||||
|
|
||||||
|
FROM eclipse-temurin:21-alpine
|
||||||
|
COPY --from=builder /app/build/libs/pcinv-0.0.1-SNAPSHOT.jar ./
|
||||||
|
ENTRYPOINT ["java", "-jar", "pcinv-0.0.1-SNAPSHOT.jar"]
|
||||||
|
EXPOSE 8088/tcp
|
||||||
Reference in New Issue
Block a user