Corrigido a imagem de build.
Some checks failed
Build e Deploy / build-and-deploy (push) Failing after 4m42s
Some checks failed
Build e Deploy / build-and-deploy (push) Failing after 4m42s
This commit is contained in:
@@ -8,23 +8,24 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
build-and-deploy:
|
build-and-deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
|
||||||
image: maven:3.9-eclipse-temurin-21
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout do código
|
- name: Checkout do código
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Cache das dependências do Maven
|
- name: Configurar JDK 21 e Cache
|
||||||
uses: actions/cache@v4
|
uses: actions/setup-java@v4
|
||||||
with:
|
with:
|
||||||
path: ~/.m2/repository
|
java-version: '21'
|
||||||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
distribution: 'temurin'
|
||||||
restore-keys: |
|
# O setup-java nativo já gerencia o cache da pasta ~/.m2 perfeitamente!
|
||||||
${{ runner.os }}-maven-
|
cache: 'maven'
|
||||||
|
|
||||||
- name: Build do JAR (Sem Testes)
|
- name: Build do JAR (Sem Testes)
|
||||||
run: mvn clean install -DskipTests
|
run: |
|
||||||
|
# Dar permissão de execução para o wrapper (caso não tenha)
|
||||||
|
chmod +x ./mvnw
|
||||||
|
# Usar o wrapper substitui a necessidade de instalar o Maven no sistema
|
||||||
|
./mvnw clean install -DskipTests
|
||||||
|
|
||||||
- name: Chamar Webhook do Coolify
|
- name: Chamar Webhook do Coolify
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user