File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1313 steps :
1414 - uses : actions/checkout@v4
1515 - name : Run tests
16- run : docker build --target test .
16+ run : docker build --build-arg TARGETPLATFORM=linux/amd64 -- target test .
1717 build :
1818 name : Build
1919 runs-on : [self-hosted, linux]
Original file line number Diff line number Diff line change 22# Gomplate
33# ###########
44FROM alpine:3 AS gomplate
5- ARG TARGETPLATFORM=linux/amd64
5+ ARG TARGETPLATFORM
66ARG GOMPLATE_VERSION=3.11.7
77ARG GOMPLATE_AMD64_SHA256=8010a1a4ff15db238f61f02cd716d677aff9a4c7b59335008183f897f46ca9a5
88ARG GOMPLATE_ARM64_SHA256=57ebc2ca8c231a24d5664145f9e731c61a260328ca3a6118fca8b94c37075cd8
99RUN apk add --no-cache curl bash
1010SHELL ["/bin/bash" , "-c" ]
11- RUN ARCH=${TARGETPLATFORM/linux\/ /} \
11+ RUN echo "Downloading gomplate version ${GOMPLATE_VERSION} for ${TARGETPLATFORM}" \
12+ && ARCH=${TARGETPLATFORM/linux\/ /} \
1213 && curl -Lf https://github.com/hairyhenderson/gomplate/releases/download/v${GOMPLATE_VERSION}/gomplate_linux-${ARCH}-slim -o /tmp/gomplate \
1314 && sha_envvar="GOMPLATE_${ARCH^^}_SHA256" \
1415 && GOMPLATE_SHA256="${!sha_envvar}" \
You can’t perform that action at this time.
0 commit comments