From 9177b705b43a693de167a3c3becdd41357e1777d Mon Sep 17 00:00:00 2001 From: xuthus Date: Tue, 16 Apr 2024 02:44:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95CI/CD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/build.yaml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 21052af..3d2d11d 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -20,24 +20,24 @@ jobs: distribution: 'adopt' cache: 'maven' # maven缓存,不加的话每次都会去重新拉取,会影响速度 - - name: Dependies Cache - uses: actions/cache@v2 - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- +# - name: Dependies Cache +# uses: actions/cache@v2 +# with: +# path: ~/.m2/repository +# key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} +# restore-keys: | +# ${{ runner.os }}-maven- # 编译打包 - name: Build with Maven run: | mvn package -Dmaven.test.skip=true - name: Set up Docker Buildx id: buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v3 #build镜像并push到中央仓库中 - name: Build and push id: docker_build - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v5 with: context: ./ file: ./dockerfile