mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-19 01:53:57 +08:00
* docker: sunnypilot images * update ref for now * update * actually nightly * rename * enable now * revert
19 lines
517 B
Bash
Executable File
19 lines
517 B
Bash
Executable File
if [ "$1" = "base" ]; then
|
|
export DOCKER_IMAGE=sunnypilot-base
|
|
export DOCKER_FILE=Dockerfile.sunnypilot_base
|
|
elif [ "$1" = "prebuilt" ]; then
|
|
export DOCKER_IMAGE=sunnypilot-prebuilt
|
|
export DOCKER_FILE=Dockerfile.sunnypilot
|
|
else
|
|
echo "Invalid docker build image: '$1'"
|
|
exit 1
|
|
fi
|
|
|
|
export DOCKER_REGISTRY=ghcr.io/sunnypilot
|
|
export COMMIT_SHA=$(git rev-parse HEAD)
|
|
|
|
TAG_SUFFIX=$2
|
|
LOCAL_TAG=$DOCKER_IMAGE$TAG_SUFFIX
|
|
REMOTE_TAG=$DOCKER_REGISTRY/$LOCAL_TAG
|
|
REMOTE_SHA_TAG=$DOCKER_REGISTRY/$LOCAL_TAG:$COMMIT_SHA
|