提交 730f41ea 作者: 余乾开

feat(Action):补充Action

上级 c8abf93f
...@@ -60,10 +60,9 @@ jobs: ...@@ -60,10 +60,9 @@ jobs:
#server-id: github # Value of the distributionManagement/repository/id field of the pom.xml #server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
#settings-path: ${{ github.workspace }} # location for the settings.xml file #settings-path: ${{ github.workspace }} # location for the settings.xml file
- name: Build with Maven #- name: Build with Maven
run: | #run: |
mvn clean package #mvn clean package
ls target/
#path: '${{ github.workspace }}/target/*.jar' #path: '${{ github.workspace }}/target/*.jar'
# 2.1 (Optional) Login to ACR EE # 2.1 (Optional) Login to ACR EE
...@@ -80,6 +79,7 @@ jobs: ...@@ -80,6 +79,7 @@ jobs:
# 2.2 (Optional) Build and push image ACR EE # 2.2 (Optional) Build and push image ACR EE
- name: Build and push image to ACR EE - name: Build and push image to ACR EE
run: | run: |
mvn clean package
docker build -t "$ACR_EE_REGISTRY/$ACR_EE_NAMESPACE/$ACR_EE_IMAGE:$TAG" . docker build -t "$ACR_EE_REGISTRY/$ACR_EE_NAMESPACE/$ACR_EE_IMAGE:$TAG" .
docker push "$ACR_EE_REGISTRY/$ACR_EE_NAMESPACE/$ACR_EE_IMAGE:$TAG" docker push "$ACR_EE_REGISTRY/$ACR_EE_NAMESPACE/$ACR_EE_IMAGE:$TAG"
......
...@@ -3,7 +3,7 @@ FROM openjdk:8-jdk-alpine ...@@ -3,7 +3,7 @@ FROM openjdk:8-jdk-alpine
ARG JAVA_OPTS ARG JAVA_OPTS
ENV JAVA_OPTS=$JAVA_OPTS ENV JAVA_OPTS=$JAVA_OPTS
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone
COPY target/pms-0.0.1-SNAPSHOT.jar pms.jar COPY ./target/pms-0.0.1-SNAPSHOT.jar pms.jar
EXPOSE 8099 EXPOSE 8099
# For Spring-Boot project, use the entrypoint below to reduce Tomcat startup time. # For Spring-Boot project, use the entrypoint below to reduce Tomcat startup time.
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论