Skip to content
Snippets Groups Projects
Commit 5a1cda7c authored by Lorenzo Pagliai's avatar Lorenzo Pagliai
Browse files

[DOCKER USER] Add docker user to edgehog group

* This is necessary to guarantee write access to edgehog folder in build
server containing sstate and downloads caches
* Move env initizialization to .initenv
* Reduce build artifacts expiration time to 1 week
parent 35600a7f
No related branches found
No related tags found
No related merge requests found
......@@ -152,6 +152,16 @@ retrigger:
########## BUILD ############
#############################
.initENV: &initENV
- NEWUS='secous'
- groupadd $NEWUS -g 1002
- /usr/bin/restrict_useradd.sh 1002 1002 $NEWUS
- groupadd edgehog -g 1023
- usermod -a -G edgehog $NEWUS
- chown -R :edgehog /var/cache/edgehog_downloads /var/cache/edgehog_sstate
- chsh -s /bin/bash $NEWUS
- su $NEWUS
.build:
extends:
- .infrastructure
......@@ -169,8 +179,8 @@ retrigger:
cache: {}
retry : 2
before_script:
- NEWUS='secous'; groupadd $NEWUS -g 1002; /usr/bin/restrict_useradd.sh 1002 1002 $NEWUS; chsh -s /bin/bash $NEWUS; su $NEWUS
- *initENV
script:
# init repository and generate configuration files for bitbake
# checkout
......@@ -233,7 +243,7 @@ retrigger:
fi
artifacts:
expire_in: 4 weeks
expire_in: 1 week
paths:
- $BUILD_DIRECTORY/$IMAGES_PATH/$MACHINE/
- pathname.txt
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment