Skip to content

Commit d8c7a9f

Browse files
authored
Merge pull request #244 from gersonrs/develop
feat: add load image in pipeline local
2 parents 0ebbcdb + 8080c83 commit d8c7a9f

4 files changed

Lines changed: 191 additions & 171 deletions

File tree

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
# Workflow do GitHub Actions para verificar se o código Terraform está bem formatado e se os commits seguem
3+
# a estrutura de mensagens de commit convencionais (necessário para criar releases automáticas com Release Please).
4+
#
5+
# IMPORTANTE: Este workflow é chamado por outros workflows nos repositórios da Modern Gitops Stack e está
6+
# centralizado aqui para facilitar a manutenção entre módulos. Por isso, certifique-se de não introduzir
7+
# mudanças que quebrem a compatibilidade ao modificar este workflow.
8+
9+
name: "modules-linters"
10+
11+
on:
12+
workflow_call:
13+
14+
jobs:
15+
commits-checks:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: "Fazer checkout do repositório"
20+
uses: actions/checkout@v6
21+
with:
22+
fetch-depth: 0 # Buscar todo o histórico para todas as tags e branches
23+
24+
- name: "Verificar mensagens de commit"
25+
uses: docker://aevea/commitsar:0.20.2
26+
env:
27+
COMMITSAR_CONFIG_PATH : ./.github

.github/workflows/modules-docker-build-push.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ jobs:
8888
file: ${{ inputs.context }}/${{ inputs.dockerfile }}
8989
platforms: ${{ inputs.platforms }}
9090
push: ${{ github.event_name != 'pull_request' }}
91+
load: ${{ github.event_name == 'pull_request' }}
9192
tags: ${{ steps.meta.outputs.tags }}
9293
labels: ${{ steps.meta.outputs.labels }}
9394
annotations: ${{ steps.meta.outputs.annotations }}

.github/workflows/modules-linters.yaml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,4 @@ jobs:
2727
run: "terraform fmt -check"
2828

2929
commits-checks:
30-
runs-on: ubuntu-latest
31-
32-
steps:
33-
- name: "Fazer checkout do repositório"
34-
uses: actions/checkout@v6
35-
with:
36-
fetch-depth: 0 # Buscar todo o histórico para todas as tags e branches
37-
38-
- name: "Verificar mensagens de commit"
39-
uses: docker://aevea/commitsar:0.20.2
40-
env:
41-
COMMITSAR_CONFIG_PATH : ./.github
30+
uses: GersonRS/modern-gitops-stack/.github/workflows/modules-commitlinter.yaml@main

0 commit comments

Comments
 (0)