Skip to content
Snippets Groups Projects
Verified Commit cbf0b456 authored by Sheogorath's avatar Sheogorath :european_castle:
Browse files

ci(earthly): Add latest as arg to be passed down

parent af074e02
No related branches found
Tags wordpress-0.2.5
No related merge requests found
......@@ -3,7 +3,8 @@ VERSION --wait-block 0.7
# images builds all container images in the Repository
images:
ARG CONTAINER_REGISTRY=quay.io/shivering-isles
BUILD +images-earthly --CONTAINER_REGISTRY=${CONTAINER_REGISTRY}
ARG latest=false
BUILD +images-earthly --CONTAINER_REGISTRY=${CONTAINER_REGISTRY} --latest=$latest
images-src:
FROM quay.io/fedora/fedora:39
......@@ -12,8 +13,9 @@ images-src:
images-earthly:
FROM +images-src
ARG CONTAINER_REGISTRY=quay.io/shivering-isles
ARG latest=false
FOR dir IN $(find ./images -type d -execdir test -f {}/Earthfile -a \! -e {}/.skip-earthly \; -print)
BUILD "${dir}+container" --registry="$CONTAINER_REGISTRY/$(basename ${dir})"
BUILD "${dir}+container" --registry="$CONTAINER_REGISTRY/$(basename ${dir})" --latest=$latest
END
# changelog generates a local RELEASENOTES.md file using git-chglog
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment