From 13b7ccb1bf718b16dcad3dd81fe4e8cb9dd2a31c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Caetano?= Date: Wed, 11 Jun 2025 20:42:37 -0300 Subject: [PATCH] =?UTF-8?q?feat:=20Altera=C3=A7=C3=A3o=20trigger=20deploy?= =?UTF-8?q?=20branch=20master=20para=20dev?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/ci-and-cd.yml | 6 +++--- infrastructure/Dockerfile | 22 ---------------------- 2 files changed, 3 insertions(+), 25 deletions(-) delete mode 100644 infrastructure/Dockerfile diff --git a/.gitea/workflows/ci-and-cd.yml b/.gitea/workflows/ci-and-cd.yml index 3cec98b..0f9b538 100644 --- a/.gitea/workflows/ci-and-cd.yml +++ b/.gitea/workflows/ci-and-cd.yml @@ -76,7 +76,7 @@ jobs: env: DEJO_NODE_AWS_REGION: us-east-1 AWS_ECR_REPOSITORY: dev-dejo/dejo-node - DISABLE_DISCORD_NOTIFY: true + DISABLE_DISCORD_NOTIFY: false DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} sha_short: ${{ needs.release.outputs.sha_short }} steps: @@ -116,8 +116,8 @@ jobs: - name: Build and Push Backend uses: docker/build-push-action@v5 with: - context: infrastructure - file: infrastructure/Dockerfile + context: . + file: ./Dockerfile push: true tags: | ${{ secrets.DEV_DEJO_AWS_ECR_REGISTRY }}/${{ env.AWS_ECR_REPOSITORY }}:latest diff --git a/infrastructure/Dockerfile b/infrastructure/Dockerfile deleted file mode 100644 index cad605c..0000000 --- a/infrastructure/Dockerfile +++ /dev/null @@ -1,22 +0,0 @@ -# Dockerfile para o DEJO Node - -FROM golang:1.23 as builder -WORKDIR /app - -# Copiar arquivos e instalar dependências -COPY go.mod go.sum ./ -RUN go mod download - -COPY . . -RUN go build -o dejo-node ./cmd/main.go - -# Criar imagem final -FROM debian:bullseye-slim -WORKDIR /root/ - -COPY --from=builder /app/dejo-node ./dejo-node - -# Definir variáveis de ambiente padrão -ENV CONFIG_PATH="/config/config.yaml" - -CMD ["./dejo-node"]