mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-19 11:13:53 +08:00
* arch specific tags * merge multiarch script * arm64 build and merge jobs * update tag script * casual ci test * change image to 2204 * docker -v test * arch specific naming * Remove test_buildjet * build -arch images only when CURRENT_ARCH_BUILD is set * support new tags in tag_multiarch * Toggle CURRENT_ARCH_BUILD on in ci * Docker common * Fix condition * Fix path to docker_common * Add more stuff to common * Add build_arm job * composite job for building * Run checkout before build composite * add shell arg * move timeout to selfdrive_tests * TARGET ARCHITECTURE var * Support TARGET_ARCHITECTURE in workflow * Rewrite to Single build job with matrix * Remove shebang from docker_common * Attempt for fix build matrix * Remove setup arch * build matrix for docker push * Use 2vcpu for arm build * 2vcpu for docker_push too * temporarly unlock docker_push * Remove requirement for target arch when pushing * Unset target architecture in docker_push cl * fix sha tags * Rename action to compile-openpilot * move push_image line to tag_multiarch step * arch suffix for scons cache * cache_key_prefix for setup-with-retry * Re-disable docker_push on non-master * Add newlines
28 lines
834 B
Bash
28 lines
834 B
Bash
if [ $1 = "base" ]; then
|
|
export DOCKER_IMAGE=openpilot-base
|
|
export DOCKER_FILE=Dockerfile.openpilot_base
|
|
elif [ $1 = "docs" ]; then
|
|
export DOCKER_IMAGE=openpilot-docs
|
|
export DOCKER_FILE=docs/docker/Dockerfile
|
|
elif [ $1 = "sim" ]; then
|
|
export DOCKER_IMAGE=openpilot-sim
|
|
export DOCKER_FILE=tools/sim/Dockerfile.sim
|
|
elif [ $1 = "prebuilt" ]; then
|
|
export DOCKER_IMAGE=openpilot-prebuilt
|
|
export DOCKER_FILE=Dockerfile.openpilot
|
|
elif [ $1 = "cl" ]; then
|
|
export DOCKER_IMAGE=openpilot-base-cl
|
|
export DOCKER_FILE=Dockerfile.openpilot_base_cl
|
|
else
|
|
echo "Invalid docker build image $1"
|
|
exit 1
|
|
fi
|
|
|
|
export DOCKER_REGISTRY=ghcr.io/commaai
|
|
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
|