Skip to content

Commit 15f89d0

Browse files
committed
Fix linux/arm64 image
We were installing amd64 gomplate into the arm64 image.
1 parent b172354 commit 15f89d0

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
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]

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22
# Gomplate
33
############
44
FROM alpine:3 AS gomplate
5-
ARG TARGETPLATFORM=linux/amd64
5+
ARG TARGETPLATFORM
66
ARG GOMPLATE_VERSION=3.11.7
77
ARG GOMPLATE_AMD64_SHA256=8010a1a4ff15db238f61f02cd716d677aff9a4c7b59335008183f897f46ca9a5
88
ARG GOMPLATE_ARM64_SHA256=57ebc2ca8c231a24d5664145f9e731c61a260328ca3a6118fca8b94c37075cd8
99
RUN apk add --no-cache curl bash
1010
SHELL ["/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}" \

0 commit comments

Comments
 (0)