fix args and pass var
All checks were successful
Go-tags / build (push) Successful in 2m12s

This commit is contained in:
maximo tejeda 2024-11-15 11:43:05 -04:00
parent c224ca1730
commit d6d1450a46
2 changed files with 2 additions and 2 deletions

View File

@ -40,4 +40,4 @@ jobs:
tags: git.maximotejeda.com/maximo/ddns:${{ github.ref_name }} tags: git.maximotejeda.com/maximo/ddns:${{ github.ref_name }}
build-args: | build-args: |
version=${{ github.ref_name }} version=${{ github.ref_name }}
SHORTSHA=${{ steps.vars.outputs.shortsha }} SHORTSHA=${{ steps.calculate-short-sha.outputs.shortsha }}

View File

@ -9,7 +9,7 @@ COPY . .
RUN go build -o bin/ddns \ RUN go build -o bin/ddns \
-ldflags "-X main.Shortsha=${SHORTSHA} \ -ldflags "-X main.Shortsha=${SHORTSHA} \
-X main.Version=${version} \ -X main.Version=${version} \
-X main.Aarch=${TARGETPLATFORM}" ./cmd -X main.Aarch=${BUILDPLATFORM}" ./cmd
FROM alpine AS runner FROM alpine AS runner
COPY --from=builder /app/bin/ddns /usr/bin/ COPY --from=builder /app/bin/ddns /usr/bin/