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 14
14
- uses : actions/checkout@v4
15
15
- name : Run tests
16
16
run : docker build --build-arg TARGETPLATFORM=linux/amd64 --target test .
17
+
17
18
build :
18
19
name : Build
19
20
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
-
19
1
# ###########
20
2
# Base
21
3
# ###########
22
4
FROM alpine:3 AS base
23
- COPY --from=gomplate /tmp/gomplate /usr/local/bin/
24
5
RUN apk add --no-cache \
25
6
bash \
7
+ gomplate \
26
8
nginx \
27
9
nginx-mod-http-headers-more
28
10
COPY src /
You can’t perform that action at this time.
0 commit comments