Mudado a imagem de build do workflow.
Some checks failed
Build e Deploy / build-and-deploy (push) Failing after 1m15s
Some checks failed
Build e Deploy / build-and-deploy (push) Failing after 1m15s
This commit is contained in:
@@ -8,29 +8,25 @@ on:
|
||||
jobs:
|
||||
build-and-deploy:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: maven:3.9-eclipse-temurin-21
|
||||
|
||||
steps:
|
||||
- name: Checkout do código
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Configurar JDK 21
|
||||
uses: actions/setup-java@v4
|
||||
- name: Cache das dependências do Maven
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
java-version: '21'
|
||||
distribution: 'temurin'
|
||||
cache: 'maven' # Esta linha ativa o cache automático das dependências do Maven
|
||||
|
||||
- name: Corrigir Instalador e Instalar Maven
|
||||
run: |
|
||||
sudo dpkg --configure -a
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y maven
|
||||
path: ~/.m2/repository
|
||||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-maven-
|
||||
|
||||
- name: Build do JAR (Sem Testes)
|
||||
run: |
|
||||
# O -DskipTests ignora os testes e foca só em gerar o arquivo
|
||||
mvn clean install -DskipTests
|
||||
run: mvn clean install -DskipTests
|
||||
|
||||
- name: Chamar Webhook do Coolify
|
||||
run: |
|
||||
curl -X GET "https://coolify.stackpanel.com.br/api/v1/deploy?uuid=iwwcg08c04css0o444k08sgg&force=false" \
|
||||
-H "Authorization: Bearer 6|JDmqzDFYjZbHKGEt3jjMERvvMTKNsDjsugQQkZtg28e56c42"
|
||||
-H "Authorization: Bearer ${{ secrets.COOLIFY_TOKEN }}"
|
||||
Reference in New Issue
Block a user