tests: set correct user on github actions

This commit is contained in:
Jose Diaz-Gonzalez committed 2020-06-19 22:01:13 -04:00
1 parent 03f8922ffd
commit edf5d29213
1 file changed
+8 -1
+8 -1
View File
@@ -123,8 +123,15 @@ setup_circle() {
sudo -E make -e setup-deploy-tests
lsb_release -a
# setup .dokkurc
getent passwd | cut -d: -f1 | sort
sudo -E mkdir -p /home/dokku/.dokkurc
sudo -E chown dokku:ubuntu /home/dokku/.dokkurc
if [[ -n "$GITHUB_ACTIONS" ]]; then
sudo -E chown dokku:dokku /home/dokku/.dokkurc
else
sudo -E chown dokku:ubuntu /home/dokku/.dokkurc
fi
sudo -E chmod 775 /home/dokku/.dokkurc
# pull node:4 image for testing
sudo docker pull node:4