From 6cc5212eba212691e8507c22a55c2ec832964961 Mon Sep 17 00:00:00 2001 From: cat-shark <1716967236@qq.com> Date: Sun, 19 Jul 2026 20:56:30 +0800 Subject: [PATCH] =?UTF-8?q?fix(ci):=20=E4=BD=BF=E7=94=A8=20maven=20?= =?UTF-8?q?=E5=AE=B9=E5=99=A8=E9=95=9C=E5=83=8F=EF=BC=8C=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E6=89=8B=E5=8A=A8=E5=AE=89=E8=A3=85=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/deploy.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index dcdb6c0..db38c3e 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -19,18 +19,14 @@ env: jobs: build-and-deploy: runs-on: ubuntu-latest + container: + image: maven:3.9-eclipse-temurin-17 steps: - name: Checkout code run: | git clone $REPO_URL . git checkout ${{ gitea.sha }} - - name: Set up JDK 17 - run: | - /usr/bin/apt-get update -qq - /usr/bin/apt-get install -y -qq openjdk-17-jdk - java -version - - name: Build with Maven run: ./mvnw package -DskipTests -B @@ -40,7 +36,6 @@ jobs: - name: Build & Push Docker image run: | - /usr/bin/apt-get install -y -qq docker.io TAG=${{ gitea.sha }} docker build -t $REGISTRY/$APP:$TAG -t $REGISTRY/$APP:${{ inputs.environment }} . docker push $REGISTRY/$APP:$TAG