cicd:#62 added helm chart and changed deployment

This commit is contained in:
Justin Kreller
2024-11-22 15:24:17 +01:00
parent f6a7dd78ae
commit 9af5a3b49a
16 changed files with 707 additions and 254 deletions

View File

@@ -47,26 +47,3 @@ COPY --chown=$USER:$USER --from=build /htwkalender-ical ./
EXPOSE 8091
ENTRYPOINT ["./main"]
FROM golang:1.23 AS dev
# Set the Current Working Directory inside the container
WORKDIR /htwkalender-ical
# Copy go mod and sum files
COPY go.mod go.sum ./
RUN go mod download
# Copy the source from the current directory to the Working Directory inside the container
COPY ical/. ./ical
COPY common/. ./common
# Build the Go app
RUN CGO_ENABLED=1 GOOS=linux go build -o /htwkalender-ical ical/main.go
# Expose port 8091 to the outside world
EXPOSE 8091
# Entry point
ENTRYPOINT ["./main"]