提交 687d778c 作者: 余乾开

feat(Action):补充Action

上级 b3601a3c
......@@ -23,7 +23,6 @@ on:
push:
branches: [ "develop" ]
# Environment variables available to all jobs and steps in this workflow.
env:
REGION_ID: cn-shenzhen
REGISTRY: mmc-registry.cn-shenzhen.cr.aliyuncs.com
......@@ -38,7 +37,7 @@ env:
ACR_EE_NAMESPACE: sharefly
ACR_EE_IMAGE: pms
ACR_EE_TAG: ${{ github.sha }}
JAVA_VERSION: '8' # set this to the java version to use (e.g. '8', '11', '17')
JAVA_VERSION: '8'
permissions:
contents: read
......@@ -53,16 +52,17 @@ jobs:
uses: actions/checkout@v3
- uses: actions/checkout@v3
- name: Set up JDK 11
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
java-version: ${{env.JAVA_VERSION}}
#distribution: 'temurin'
#server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
#settings-path: ${{ github.workspace }} # location for the settings.xml file
- name: Build with Maven
run: mvn -B package --file pom.xml
run: mvn clean install
#path: '${{ github.workspace }}/target/*.jar'
# 2.1 (Optional) Login to ACR EE
- uses: actions/checkout@v3
......
FROM openjdk:17-jdk-alpine
FROM openjdk:8-jdk-alpine
#VOLUME ["/tmp","/files","/var/logs/"]
ARG JAVA_OPTS
ENV JAVA_OPTS=$JAVA_OPTS
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论