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