From ed1f51dde2b650e3a57915d4ed35cd791c6d45e0 Mon Sep 17 00:00:00 2001 From: David Karlsson <35727626+dvdksn@users.noreply.github.com> Date: Thu, 1 Feb 2024 16:58:46 +0100 Subject: [PATCH] build: use a site param for example alpine versions Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com> --- content/build/building/multi-platform.md | 2 +- content/build/building/multi-stage.md | 12 +++++------- content/build/ci/github-actions/named-contexts.md | 2 +- hugo.yaml | 1 + 4 files changed, 8 insertions(+), 9 deletions(-) diff --git a/content/build/building/multi-platform.md b/content/build/building/multi-platform.md index c5412f8433..5c9be87c17 100644 --- a/content/build/building/multi-platform.md +++ b/content/build/building/multi-platform.md @@ -193,7 +193,7 @@ cURL installed for multiple architectures: ```dockerfile # syntax=docker/dockerfile:1 -FROM alpine:3.16 +FROM alpine:{{% param "example_alpine_version" %}} RUN apk add curl ``` diff --git a/content/build/building/multi-stage.md b/content/build/building/multi-stage.md index 70dd9c942b..f153fb0679 100644 --- a/content/build/building/multi-stage.md +++ b/content/build/building/multi-stage.md @@ -1,10 +1,8 @@ --- title: Multi-stage builds -description: 'Learn about multi-stage builds and how you can use - +description: | + Learn about multi-stage builds and how you can use them to improve your builds and get smaller images - - ' keywords: build, best practices aliases: - /engine/userguide/eng-image/multistage-build/ @@ -22,11 +20,11 @@ stage of the build. You can selectively copy artifacts from one stage to another, leaving behind everything you don't want in the final image. The following Dockerfile has two separate stages: one for building a binary, -and another where we copy the binary into. +and another where the binary gets copied from the first stage into the next stage. ```dockerfile # syntax=docker/dockerfile:1 -FROM golang:1.21 +FROM golang:{{% param "example_go_version" %}} WORKDIR /src COPY <