mirror of
https://github.com/kasmtech/workspaces-core-images.git
synced 2024-11-22 07:23:09 +01:00
19 lines
504 B
Bash
Executable File
19 lines
504 B
Bash
Executable File
#!/bin/bash
|
|
|
|
## Parse input ##
|
|
NAME1=$1
|
|
NAME2=$2
|
|
BASE=$3
|
|
BG=$4
|
|
DISTRO=$5
|
|
DOCKERFILE=$6
|
|
|
|
## Build/Push image to cache endpoint by pipeline ID ##
|
|
docker build \
|
|
-t ${ORG_NAME}/image-cache-private:$(arch)-core-${NAME1}-${NAME2}-${SANITIZED_BRANCH}-${CI_PIPELINE_ID} \
|
|
--build-arg BASE_IMAGE="${BASE}" \
|
|
--build-arg DISTRO="${DISTRO}" \
|
|
--build-arg BG_IMG="${BG}" \
|
|
-f ${DOCKERFILE} .
|
|
docker push ${ORG_NAME}/image-cache-private:$(arch)-core-${NAME1}-${NAME2}-${SANITIZED_BRANCH}-${CI_PIPELINE_ID}
|