feat: variable go version
All checks were successful
/ deploy (push) Successful in 46s

This commit is contained in:
ange 2024-10-16 14:10:18 +08:00
parent d1d304baae
commit 8eacf95dcb
Signed by: ange
GPG Key ID: 9E0C4157BB7BEB1D
3 changed files with 8 additions and 4 deletions

View File

@ -1,6 +1,10 @@
FROM docker.io/golang:1.23 as build
COPY src/ .
RUN printf 'module yw5n\ngo 1.23' > go.mod && CGO_ENABLED=0 go build -o /app
ARG VER=1.23
FROM "docker.io/golang:$VER" as build
WORKDIR /app/
ARG VER
COPY main.go .
RUN printf "module yw5n\ngo $VER" > go.mod && CGO_ENABLED=0 go build -o /app
FROM scratch
COPY --from=build /app /app

View File

@ -40,7 +40,7 @@
<h3><b>EPITECH Toulouse</b> - Promo 2026</h3>
<ul>
<li>C/C++ (system programming, AI, ciphering, games)</li>
<li>Free languages (maths, functional programming)</li>
<li>Free languages (math, functional programming)</li>
<li>DevOps (GitHub Actions, Docker, Ansible, Kubernetes)</li>
</ul>