mirror of
https://github.com/kasmtech/workspaces-images.git
synced 2025-02-21 20:31:08 +01:00
KASM-4579 use rolling images to build on scheduled builds and respect the private flag
This commit is contained in:
parent
871d644849
commit
107a4e1353
@ -5,6 +5,16 @@ NAME=$(echo $1| awk -F'|' '{print $1}')
|
||||
BASE=$(echo $1| awk -F'|' '{print $2}')
|
||||
DOCKERFILE=$(echo $1| awk -F'|' '{print $3}')
|
||||
|
||||
# Determine if we are using private images
|
||||
if [ ${USE_PRIVATE_IMAGES} -eq 1 ]; then
|
||||
BASE=${BASE}-private
|
||||
fi
|
||||
|
||||
# Determine if this is a rolling build
|
||||
if [ "${CI_PIPELINE_SOURCE}" == "schedule" ]; then
|
||||
BASE_TAG=${BASE_TAG}-rolling
|
||||
fi
|
||||
|
||||
## Build/Push image to cache endpoint by pipeline ID ##
|
||||
docker build \
|
||||
-t ${ORG_NAME}/image-cache-private:$(arch)-${NAME}-${SANITIZED_BRANCH}-${CI_PIPELINE_ID} \
|
||||
|
Loading…
Reference in New Issue
Block a user