Set default CI working directory

This commit is contained in:
Rodrigo Q. Saramago
2022-09-12 16:45:43 +02:00
parent 3b16174190
commit c8fb2022e1
6 changed files with 32 additions and 11 deletions
+2 -2
View File
@@ -40,9 +40,9 @@ else
BUILD_DIR="$1"
fi
WORKSPACE=/project
WORKSPACE="${HOME}/project"
cd $WORKSPACE
cd "$WORKSPACE"
# shellcheck disable=SC2166
if [[ "$CIRCLE_BRANCH" = release || -n "$CIRCLE_TAG" || -n "$FORCE_RELEASE" || "$(git tag --points-at HEAD 2>/dev/null)" == v* ]]
+1 -1
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
set -ex
ROOTDIR="/project"
ROOTDIR="${HOME}/project"
BUILDDIR="${ROOTDIR}/build"
mkdir -p "${BUILDDIR}" && mkdir -p "$BUILDDIR/deps"
+3 -3
View File
@@ -56,11 +56,11 @@ echo "-- test_docker @ '${PWD}'"
# See https://github.blog/2022-04-12-git-security-vulnerability-announced/
docker run \
--rm \
--volume "${PWD}:/project" \
--volume "${PWD}:${HOME}/project" \
"${IMAGE_NAME}" \
bash -c "
git config --global --add safe.directory /project &&
/project/scripts/ci/${IMAGE_NAME}_test_${IMAGE_VARIANT}.sh
git config --global --add safe.directory ${HOME}/project &&
${HOME}/project/scripts/ci/${IMAGE_NAME}_test_${IMAGE_VARIANT}.sh
"
echo "-- push_docker"