File tree Expand file tree Collapse file tree 2 files changed +2
-19
lines changed Expand file tree Collapse file tree 2 files changed +2
-19
lines changed Original file line number Diff line number Diff line change 1414 - uses : actions/checkout@v4
1515 - name : Run tests
1616 run : docker build --build-arg TARGETPLATFORM=linux/amd64 --target test .
17+
1718 build :
1819 name : Build
1920 runs-on : [self-hosted, linux]
Original file line number Diff line number Diff line change 1- # ###########
2- # Gomplate
3- # ###########
4- FROM alpine:3 AS gomplate
5- ARG TARGETPLATFORM
6- ARG GOMPLATE_VERSION=3.11.7
7- ARG GOMPLATE_AMD64_SHA256=8010a1a4ff15db238f61f02cd716d677aff9a4c7b59335008183f897f46ca9a5
8- ARG GOMPLATE_ARM64_SHA256=57ebc2ca8c231a24d5664145f9e731c61a260328ca3a6118fca8b94c37075cd8
9- RUN apk add --no-cache curl bash
10- SHELL ["/bin/bash" , "-c" ]
11- RUN echo "Downloading gomplate version ${GOMPLATE_VERSION} for ${TARGETPLATFORM}" \
12- && ARCH=${TARGETPLATFORM/linux\/ /} \
13- && curl -Lf https://github.com/hairyhenderson/gomplate/releases/download/v${GOMPLATE_VERSION}/gomplate_linux-${ARCH}-slim -o /tmp/gomplate \
14- && sha_envvar="GOMPLATE_${ARCH^^}_SHA256" \
15- && GOMPLATE_SHA256="${!sha_envvar}" \
16- && echo "${GOMPLATE_SHA256} /tmp/gomplate" | sha256sum -c \
17- && chmod +x /tmp/gomplate
18-
191# ###########
202# Base
213# ###########
224FROM alpine:3 AS base
23- COPY --from=gomplate /tmp/gomplate /usr/local/bin/
245RUN apk add --no-cache \
256 bash \
7+ gomplate \
268 nginx \
279 nginx-mod-http-headers-more
2810COPY src /
You can’t perform that action at this time.
0 commit comments