From b96e0996f7d4f29cd38762e007197e8bd213927e Mon Sep 17 00:00:00 2001 From: linuxMate Date: Tue, 12 Dec 2023 18:22:12 +0300 Subject: [PATCH] cd --- .github/workflows/CD.yaml | 4 +++- build/auth.Dockerfile | 2 -- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/CD.yaml b/.github/workflows/CD.yaml index fa18b629..6d168fa5 100644 --- a/.github/workflows/CD.yaml +++ b/.github/workflows/CD.yaml @@ -5,10 +5,12 @@ env: IMAGE_NAME: "hammywallet" CONTAINER_NAME: "hammywallet-api" FOLDER_COMPOSE: "production" - + GITHUB_SHA_SHORT: + AUTH_CONTAINER: "hammywallet-auth" ACCOUNT_CONTAINER: "hammywallet-account" CATEGORY_CONTAINER: "hammywallet-category" + AUTH_ADDR: auth:8010 ACCOUNT_ADDR: account:8020 CATEGORY_ADDR: category:8030 diff --git a/build/auth.Dockerfile b/build/auth.Dockerfile index 1df83dea..b9719d8a 100644 --- a/build/auth.Dockerfile +++ b/build/auth.Dockerfile @@ -4,8 +4,6 @@ FROM golang:1.21.0-alpine AS builder COPY . /github.com/go-park-mail-ru/2023_2_Hamster/ WORKDIR /github.com/go-park-mail-ru/2023_2_Hamster/ -RUN ls -la - RUN go mod download && go mod tidy RUN go clean --modcache RUN CGO_ENABLED=0 GOOS=linux go build -mod=readonly -o auth ./cmd/auth/main.go