From a4a79a113671094cf0fad32c9cd0e50ee1ee9dfd Mon Sep 17 00:00:00 2001 From: Vargha Csongor Date: Mon, 11 Mar 2024 19:43:07 +0100 Subject: [PATCH] rename cd pipelines --- ...build_and_push_auth_docker_img.yml => auth-service-cd.yml} | 0 .../{build_and_push_backend_docker_img.yml => backend-cd.yml} | 0 auth-service/dockerfile | 4 ++++ backend/dockerfile | 4 ++++ 4 files changed, 8 insertions(+) rename .github/workflows/{build_and_push_auth_docker_img.yml => auth-service-cd.yml} (100%) rename .github/workflows/{build_and_push_backend_docker_img.yml => backend-cd.yml} (100%) diff --git a/.github/workflows/build_and_push_auth_docker_img.yml b/.github/workflows/auth-service-cd.yml similarity index 100% rename from .github/workflows/build_and_push_auth_docker_img.yml rename to .github/workflows/auth-service-cd.yml diff --git a/.github/workflows/build_and_push_backend_docker_img.yml b/.github/workflows/backend-cd.yml similarity index 100% rename from .github/workflows/build_and_push_backend_docker_img.yml rename to .github/workflows/backend-cd.yml diff --git a/auth-service/dockerfile b/auth-service/dockerfile index 04269bc..543234a 100644 --- a/auth-service/dockerfile +++ b/auth-service/dockerfile @@ -1,8 +1,12 @@ FROM golang:1.22-alpine as build + WORKDIR /app COPY . . + RUN go build -o auth-service FROM busybox + COPY --from=build /app/auth-service /app/ + CMD [ "/app/auth-service" ] \ No newline at end of file diff --git a/backend/dockerfile b/backend/dockerfile index 9129fa3..a3dea18 100644 --- a/backend/dockerfile +++ b/backend/dockerfile @@ -1,8 +1,12 @@ FROM golang:1.22-alpine as build + WORKDIR /app COPY . . + RUN go build -o backend FROM busybox + COPY --from=build /app/backend /app/ + CMD [ "/app/backend" ] \ No newline at end of file