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:
|
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: Configurar JDK 21
|
- name: Cache das dependências do Maven
|
||||||
uses: actions/setup-java@v4
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
java-version: '21'
|
path: ~/.m2/repository
|
||||||
distribution: 'temurin'
|
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
||||||
cache: 'maven' # Esta linha ativa o cache automático das dependências do Maven
|
restore-keys: |
|
||||||
|
${{ runner.os }}-maven-
|
||||||
- name: Corrigir Instalador e Instalar Maven
|
|
||||||
run: |
|
|
||||||
sudo dpkg --configure -a
|
|
||||||
sudo apt-get update
|
|
||||||
sudo apt-get install -y maven
|
|
||||||
|
|
||||||
- name: Build do JAR (Sem Testes)
|
- name: Build do JAR (Sem Testes)
|
||||||
run: |
|
run: mvn clean install -DskipTests
|
||||||
# O -DskipTests ignora os testes e foca só em gerar o arquivo
|
|
||||||
mvn clean install -DskipTests
|
|
||||||
|
|
||||||
- name: Chamar Webhook do Coolify
|
- name: Chamar Webhook do Coolify
|
||||||
run: |
|
run: |
|
||||||
curl -X GET "https://coolify.stackpanel.com.br/api/v1/deploy?uuid=iwwcg08c04css0o444k08sgg&force=false" \
|
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