ADD git
All checks were successful
${{ github.actor }} executed Build Push Prod / build (push) Successful in 3m44s
${{ github.actor }} executed Build Push Prod / deploy (push) Successful in 19s

This commit is contained in:
maximo tejeda 2024-12-04 22:32:09 -04:00
parent 6f907ca9ec
commit 35d30336d8

View File

@ -5,6 +5,7 @@ ARG version=not-set
ARG SHORTSHA=not-set ARG SHORTSHA=not-set
WORKDIR /app WORKDIR /app
COPY . . COPY . .
RUN apk --no-cache add git
# https://stackoverflow.com/questions/70369368/check-architecture-in-dockerfile-to-get-amd-arm # https://stackoverflow.com/questions/70369368/check-architecture-in-dockerfile-to-get-amd-arm
RUN go build -o bin/us-dop-bot \ RUN go build -o bin/us-dop-bot \
-ldflags "-X main.Shortsha=${SHORTSHA} \ -ldflags "-X main.Shortsha=${SHORTSHA} \