This commit is contained in:
parent
374b0293fa
commit
9177b705b4
@ -20,24 +20,24 @@ jobs:
|
|||||||
distribution: 'adopt'
|
distribution: 'adopt'
|
||||||
cache: 'maven'
|
cache: 'maven'
|
||||||
# maven缓存,不加的话每次都会去重新拉取,会影响速度
|
# maven缓存,不加的话每次都会去重新拉取,会影响速度
|
||||||
- name: Dependies Cache
|
# - name: Dependies Cache
|
||||||
uses: actions/cache@v2
|
# uses: actions/cache@v2
|
||||||
with:
|
# with:
|
||||||
path: ~/.m2/repository
|
# path: ~/.m2/repository
|
||||||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
# key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
||||||
restore-keys: |
|
# restore-keys: |
|
||||||
${{ runner.os }}-maven-
|
# ${{ runner.os }}-maven-
|
||||||
# 编译打包
|
# 编译打包
|
||||||
- name: Build with Maven
|
- name: Build with Maven
|
||||||
run: |
|
run: |
|
||||||
mvn package -Dmaven.test.skip=true
|
mvn package -Dmaven.test.skip=true
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
id: buildx
|
id: buildx
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v3
|
||||||
#build镜像并push到中央仓库中
|
#build镜像并push到中央仓库中
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
id: docker_build
|
id: docker_build
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: ./
|
context: ./
|
||||||
file: ./dockerfile
|
file: ./dockerfile
|
||||||
|
Loading…
x
Reference in New Issue
Block a user