File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 13
13
steps :
14
14
- uses : actions/checkout@v4
15
15
- name : Run tests
16
- run : docker build --target test .
16
+ run : docker build --build-arg TARGETPLATFORM=linux/amd64 -- target test .
17
17
build :
18
18
name : Build
19
19
runs-on : [self-hosted, linux]
Original file line number Diff line number Diff line change 2
2
# Gomplate
3
3
# ###########
4
4
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
9
9
RUN apk add --no-cache curl bash
10
10
SHELL ["/bin/bash" , "-c" ]
11
- RUN ARCH=${TARGETPLATFORM/linux\/ /} \
11
+ RUN echo "Downloading gomplate version ${GOMPLATE_VERSION} for ${TARGETPLATFORM}" \
12
+ && ARCH=${TARGETPLATFORM/linux\/ /} \
12
13
&& curl -Lf https://github.com/hairyhenderson/gomplate/releases/download/v${GOMPLATE_VERSION}/gomplate_linux-${ARCH}-slim -o /tmp/gomplate \
13
14
&& sha_envvar="GOMPLATE_${ARCH^^}_SHA256" \
14
15
&& GOMPLATE_SHA256="${!sha_envvar}" \
You can’t perform that action at this time.
0 commit comments