Compare commits

...

4 Commits

Author SHA1 Message Date
Carlos Henrique
a86b3117cc Versao do java alterada.
All checks were successful
Build e Deploy / build-and-deploy (push) Successful in 10m28s
2026-02-28 12:30:39 -03:00
Carlos Henrique
990739f93c Corrigido a imagem de build.
All checks were successful
Build e Deploy / build-and-deploy (push) Successful in 9m45s
2026-02-27 19:59:03 -03:00
Carlos Henrique
5730e46312 Corrigido a imagem de build.
Some checks failed
Build e Deploy / build-and-deploy (push) Failing after 4m42s
2026-02-27 18:54:54 -03:00
Carlos Henrique
7b237221a3 Mudado a imagem de build do workflow.
Some checks failed
Build e Deploy / build-and-deploy (push) Failing after 1m15s
2026-02-27 18:51:16 -03:00
2 changed files with 10 additions and 9 deletions

View File

@@ -17,20 +17,21 @@ jobs:
with:
java-version: '21'
distribution: 'temurin'
cache: 'maven' # Esta linha ativa o cache automático das dependências do Maven
cache: 'maven'
- name: Corrigir Instalador e Instalar Maven
- name: Instalar Maven Direto (Garantido e Rápido)
run: |
sudo dpkg --configure -a
sudo apt-get update
sudo apt-get install -y maven
# Baixa o binário oficial e extrai na pasta /tmp em 2 segundos
curl -sL https://archive.apache.org/dist/maven/maven-3/3.9.6/binaries/apache-maven-3.9.6-bin.tar.gz | tar -xz -C /tmp
# Adiciona o Maven ao PATH do runner para os próximos passos
echo "/tmp/apache-maven-3.9.6/bin" >> $GITHUB_PATH
- name: Build do JAR (Sem Testes)
run: |
# O -DskipTests ignora os testes e foca só em gerar o arquivo
# Agora o comando 'mvn' vai funcionar perfeitamente e muito rápido
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 }}"

View File

@@ -10,7 +10,7 @@
</parent>
<groupId>br.com.stackpanel</groupId>
<artifactId>api</artifactId>
<version>0.0.1-SNAPSHOT</version>
<version>1.0.0</version>
<name>api</name>
<description>Demo project for Spring Boot</description>
<url/>
@@ -27,7 +27,7 @@
<url/>
</scm>
<properties>
<java.version>21</java.version>
<java.version>17</java.version>
</properties>
<dependencies>
<dependency>