variables: # uncomment for the pipeline debug purpose # CI_DEBUG_TRACE: "true" CI_IMAGE: gitlab.int.toradex.com:4567/rd/linux-bsp/ci-toolchain-container:linux-toradex_aarch32_arm_builder-bb6f84e DOCKER_HOST: tcp://docker:2375 DOCKER_DRIVER: overlay2 DOCKER_TLS_CERTDIR: "" stages: - build repo-sync: rules: # Don't run the job when tagging, it fails as $CI_COMMIT_BRANCH is not set # https://gitlab.com/gitlab-org/gitlab-foss/-/issues/7184 # https://docs.gitlab.com/ee/ci/yaml/README.html#rules - if: '$CI_COMMIT_BRANCH != null' stage: build image: $CI_IMAGE variables: GIT_STRATEGY: clone script: - ORIGIN=$(git remote get-url origin) - mkdir -p bin - wget -O bin/repo https://commondatastorage.googleapis.com/git-repo-downloads/repo - sed -i 's/\(\#\!\/usr\/bin\/env \)python/\1python3/' bin/repo - chmod a+x bin/repo - mkdir -p workspace - cd workspace - ../bin/repo init -u $ORIGIN -b $CI_COMMIT_BRANCH -m tdxref/default.xml - ../bin/repo sync - ../bin/repo init -u $ORIGIN -b $CI_COMMIT_BRANCH -m tdxref/integration.xml - ../bin/repo sync - ../bin/repo init -u $ORIGIN -b $CI_COMMIT_BRANCH -m tdxref/next.xml - ../bin/repo sync - ../bin/repo init -u $ORIGIN -b $CI_COMMIT_BRANCH -m tester/default.xml - ../bin/repo sync - ../bin/repo init -u $ORIGIN -b $CI_COMMIT_BRANCH -m tester/integration.xml - ../bin/repo sync - ../bin/repo init -u $ORIGIN -b $CI_COMMIT_BRANCH -m tester/next.xml - ../bin/repo sync - ../bin/repo init -u $ORIGIN -b $CI_COMMIT_BRANCH -m tezi/default.xml - ../bin/repo sync - ../bin/repo init -u $ORIGIN -b $CI_COMMIT_BRANCH -m tezi/integration.xml - ../bin/repo sync - ../bin/repo init -u $ORIGIN -b $CI_COMMIT_BRANCH -m tezi/next.xml - ../bin/repo sync - ../bin/repo init -u $ORIGIN -b $CI_COMMIT_BRANCH -m torizoncore/default.xml - ../bin/repo sync - ../bin/repo init -u $ORIGIN -b $CI_COMMIT_BRANCH -m torizoncore/integration.xml - ../bin/repo sync - ../bin/repo init -u $ORIGIN -b $CI_COMMIT_BRANCH -m torizoncore/next.xml - ../bin/repo sync