From 4704126b2a6e014d8787894a4d9f5efedbbcb204 Mon Sep 17 00:00:00 2001 From: Roberto Rosmaninho Date: Thu, 21 Sep 2023 15:37:38 -0300 Subject: [PATCH] Trying to fix ownership inside docker --- .github/workflows/develop.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/develop.yml b/.github/workflows/develop.yml index 367584e3e84..771fcf5322d 100644 --- a/.github/workflows/develop.yml +++ b/.github/workflows/develop.yml @@ -55,7 +55,6 @@ jobs: BENCHER_ADAPTER: json run: | set -euxo pipefail - chown root:root $(pwd) docker run --name k-posting-profiling-tests-${GITHUB_SHA} \ --rm -it --detach \ -e BENCHER_API_TOKEN=$BENCHER_API_TOKEN \ @@ -76,6 +75,10 @@ jobs: workspace=$(pwd) docker cp ${workspace}/. k-posting-profiling-tests-${GITHUB_SHA}:/opt/workspace + - name: 'Changing directory ownership' + run: | + docker exec -t k-posting-profiling-tests-${GITHUB_SHA} /bin/bash -c 'chown root:root /opt/workspace' + - name: 'Setting up dependencies' run: | set -euxo pipefail