From d0c37ea7fba4c3481e7690278c660cf2b5448e79 Mon Sep 17 00:00:00 2001 From: kurihada Date: Mon, 1 Jun 2026 16:58:03 +0800 Subject: [PATCH] Simplify Gitea Actions workflow --- .gitea/workflows/deploy.yml | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index a0e03b3..3acba54 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -8,27 +8,18 @@ on: jobs: build-and-deploy: runs-on: ubuntu-latest - container: - image: openjdk:21 - options: -v /var/run/docker.sock:/var/run/docker.sock steps: - name: Checkout uses: actions/checkout@v4 - - name: Setup Maven cache - uses: actions/cache@v4 - with: - path: ~/.m2/repository - key: maven-${{ hashFiles('pom.xml') }} - restore-keys: maven- - - name: Build with Maven - run: mvn clean install -Dmaven.test.skip=true + run: | + apt-get update -qq && apt-get install -y -qq maven 2>/dev/null || true + mvn clean install -Dmaven.test.skip=true - name: Build Docker image - run: | - docker build -t auth-backend:latest -t auth-backend:${{ github.sha }} . + run: docker build -t auth-backend:latest . - name: Deploy run: |