This commit is contained in:
parent
c224ca1730
commit
d6d1450a46
2
.github/workflows/image_creation.yaml
vendored
2
.github/workflows/image_creation.yaml
vendored
@ -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 }}
|
||||||
|
|||||||
@ -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/
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user