Skip to content

Commit 77ee564

Browse files
committed
Use alpine's gomplate
- Switch to system gomplate, no reason to install this ourselves anymore. - Run tests with buildx so we can test on all published platforms.
1 parent 2734457 commit 77ee564

File tree

2 files changed

+2
-19
lines changed

2 files changed

+2
-19
lines changed

.github/workflows/ci.yaml

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

Dockerfile

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,10 @@
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
############
224
FROM alpine:3 AS base
23-
COPY --from=gomplate /tmp/gomplate /usr/local/bin/
245
RUN apk add --no-cache \
256
bash \
7+
gomplate \
268
nginx \
279
nginx-mod-http-headers-more
2810
COPY src /

0 commit comments

Comments
 (0)