summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Krummenacher <max.krummenacher@toradex.com>2021-10-20 12:58:26 +0200
committerMax Krummenacher <max.krummenacher@toradex.com>2023-05-02 17:34:37 +0200
commita09186ce3bb8d63b30698f2307fd1fb852260292 (patch)
treece3ab452440b67af8f227aabe80807806c250af9
parent75023bd75eb65238780d990a229ab2714d93b5c1 (diff)
gitlab-ci: refactor
- use one of our regular containers. (with a fixup for /usr/bin/python missing) - keep the artefacts inside the checked out git repo Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com> (cherry picked from commit 495b48717be1dbfb415e427613a48099f553889a)
-rw-r--r--.gitlab-ci.yml13
1 files changed, 7 insertions, 6 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 79c898b..0008f40 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,7 +1,7 @@
variables:
# uncomment for the pipeline debug purpose
# CI_DEBUG_TRACE: "true"
- CI_IMAGE: gitlab.int.toradex.com:4567/oleksandr.suvorov/ci-toolchain-container:linux-kernel-builder
+ 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: ""
@@ -21,11 +21,12 @@ repo-sync:
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
- - chmod a+x ../bin/repo
- - mkdir -p ../workspace
- - cd ../workspace
+ - 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