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"]