This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

ci: fix build

+8 -10
+6 -8
Dockerfile
··· 1 1 ARG TAG=dev 2 2 3 3 # Stage 1: Build the Go binary using Just 4 - FROM golang:1.23.2 AS builder 4 + FROM golang:1.23.2-alpine3.20 AS builder 5 5 6 6 # Install Just in the builder stage 7 - RUN apt-get update && apt-get install -y curl 7 + RUN apk add --no-cache curl bash git 8 8 RUN curl --proto '=https' --tlsv1.2 -sSf https://just.systems/install.sh | bash -s -- --to /app 9 9 10 10 ENV PATH="/app:${PATH}" ··· 26 26 RUN /app/just build notella ${TAG} 27 27 28 28 # Stage 2: Create a lightweight image with just the binary 29 - FROM alpine:latest 29 + FROM alpine:3.20 AS runner 30 30 31 31 # Set the working directory in the container 32 32 WORKDIR /app 33 33 34 34 # Copy the binary from the builder stage 35 - COPY --from=builder /app/notella . 36 - 37 - # Expose a port (optional) 38 - EXPOSE 8080 35 + COPY --from=builder /app/notella /app/notella 39 36 40 37 # Command to run the binary 41 - CMD ["./notella"] 38 + CMD ["/app/notella"] 39 +
+2 -2
Justfile
··· 14 14 docker: 15 15 docker build -t uwun/notella:{{current_version}} . --build-arg TAG={{current_version}} 16 16 docker tag uwun/notella:{{current_version}} uwun/notella:latest 17 - docker tag uwun/notella:{{current_version}} harbor.k8s.inpt.fr/net7/churros/notella:{{current_version}} 17 + docker tag uwun/notella:{{current_version}} harbor.k8s.inpt.fr/net7/churros/notella:v{{current_version}} 18 18 docker tag uwun/notella:{{current_version}} harbor.k8s.inpt.fr/net7/churros/notella:latest 19 19 docker push uwun/notella:{{current_version}} 20 20 docker push uwun/notella:latest 21 - docker push harbor.k8s.inpt.fr/net7/churros/notella:{{current_version}} 21 + docker push harbor.k8s.inpt.fr/net7/churros/notella:v{{current_version}} 22 22 docker push harbor.k8s.inpt.fr/net7/churros/notella:latest 23 23 24 24