提交 687d778c 作者: 余乾开

feat(Action):补充Action

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