Skip to content

Commit 2734457

Browse files
authored
Merge pull request #18 from secondlife/signal/gomplate-bump
Fix arm64 image
2 parents 7c522b0 + 15f89d0 commit 2734457

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
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: 6 additions & 5 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
6-
ARG GOMPLATE_VERSION=3.10.0
7-
ARG GOMPLATE_AMD64_SHA256=603539aac4e09f98a8ca5b6e5da0c21213221206dc7175a5644255c7a22b936d
8-
ARG GOMPLATE_ARM64_SHA256=3352ef521977ee39cdd406a9a7943d0b5f29772e5542995416bf093b90bbae2c
5+
ARG TARGETPLATFORM
6+
ARG GOMPLATE_VERSION=3.11.7
7+
ARG GOMPLATE_AMD64_SHA256=8010a1a4ff15db238f61f02cd716d677aff9a4c7b59335008183f897f46ca9a5
8+
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)