From dc69e4689058a36278f6540a11af36f0c41f932c Mon Sep 17 00:00:00 2001 From: Sheogorath <sheogorath@shivering-isles.com> Date: Wed, 6 Sep 2023 22:52:21 +0200 Subject: [PATCH] chore(earthly): Add `earthly doc` comments and move parameter --- Earthfile | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/Earthfile b/Earthfile index c60ab1d21..40e087489 100644 --- a/Earthfile +++ b/Earthfile @@ -1,11 +1,11 @@ VERSION 0.7 -ARG --global CONTAINER_REGISTRY=quay.io/shivering-isles -# Build all container images +# images builds all container images in the Repository images: - BUILD +images-earthly - BUILD +images-dockerfile + ARG CONTAINER_REGISTRY=quay.io/shivering-isles + BUILD +images-earthly --CONTAINER_REGISTRY=${CONTAINER_REGISTRY} + BUILD +images-dockerfile --CONTAINER_REGISTRY=${CONTAINER_REGISTRY} images-src: FROM quay.io/fedora/fedora:38 @@ -13,17 +13,20 @@ images-src: images-earthly: FROM +images-src + ARG CONTAINER_REGISTRY=quay.io/shivering-isles FOR dir IN $(find ./images -type d -execdir test -f {}/Earthfile -a \! -e {}/.skip-earthly \; -print) BUILD "${dir}+container" --registry="$CONTAINER_REGISTRY/$(basename ${dir})" END images-dockerfile: FROM +images-src + ARG CONTAINER_REGISTRY=quay.io/shivering-isles FOR dir IN $(find ./images -type d -execdir test -f {}/Dockerfile -a \! -e {}/Earthfile -a \! -e {}/.skip-earthly \; -print) FROM DOCKERFILE -f "${dir}/Dockerfile" "${dir}" SAVE IMAGE "$CONTAINER_REGISTRY/$(basename ${dir})" END +# changelog generates a local RELEASENOTES.md file using git-chglog changelog: FROM quay.io/git-chglog/git-chglog:0.15.4 COPY . /src @@ -31,7 +34,7 @@ changelog: RUN git-chglog --template .chglog/unreleased.tpl.md --next-tag "v$(date +%y.%m)" --output RELEASENOTES.md SAVE ARTIFACT RELEASENOTES.md AS LOCAL RELEASENOTES.md -# Allows to merge branches in the origin remote, this helps to keep everything signed +# merge allows to merge branches in the origin remote, this helps to keep everything signed merge: LOCALLY ARG --required branch -- GitLab