Commit 313aef67 authored by Josh Ji's avatar Josh Ji

chore: change harbor server, new Dockerfile

parent 6b31565e
Pipeline #3303 failed with stage
......@@ -7,16 +7,16 @@ steps:
image: docker:20.10.0-dind
environment:
REGISTRY_USERNAME:
from_secret: harbor_account_in_twisc_ntust
from_secret: harbor_account_in_tanzu
REGISTRY_PASSWORD:
from_secret: harbor_secret_in_twisc_ntust
from_secret: harbor_secret_in_tanzu
volumes:
- name: docker_socket
path: /var/run/docker.sock
commands:
- docker build --no-cache -t 192.168.0.100:30004/dev/rpserver:${DRONE_COMMIT_SHA:0:8} -f ./Dockerfile .
- docker login 192.168.0.100:30004 --username $${REGISTRY_USERNAME} --password $${REGISTRY_PASSWORD}
- docker push 192.168.0.100:30004/dev/rpserver:${DRONE_COMMIT_SHA:0:8}
- docker build --no-cache -t 192.168.17.110/dev/rpserver:${DRONE_COMMIT_SHA:0:8} -f ./Dockerfile .
- docker login 192.168.17.110 --username $${REGISTRY_USERNAME} --password $${REGISTRY_PASSWORD}
- docker push 192.168.17.110/dev/rpserver:${DRONE_COMMIT_SHA:0:8}
volumes:
- name: docker_socket
......
FROM openjdk:11
COPY target/*.jar app.jar
FROM maven AS build
COPY . /tmp
WORKDIR /tmp
RUN mvn clean package -DskipTests
FROM openjdk:11-jre-slim
COPY --from=build /tmp/target/*.jar app.jar
EXPOSE 8080
ENTRYPOINT java -jar app.jar
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment