Skip to content

Commit

Permalink
fix: cicd file permission issues
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardopinosio committed Mar 21, 2024
1 parent 7e5ca25 commit 32d2c1a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
run: |
go mod download
- name: Build and run tests
run: make run-tests
run: make clean run-tests
- name: Install goveralls
run: go install github.com/mattn/goveralls@latest
- name: Send coverage
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
run: |
go mod download
- name: Build and run tests
run: make run-tests
run: make clean run-tests
- name: Install goveralls
run: go install github.com/mattn/goveralls@latest
- name: Send coverage
Expand Down
5 changes: 5 additions & 0 deletions scripts/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ user_name=testuser # the container non-privileged user (see dockerfile)
if [[ -n $HOST_UID ]] && [[ $HOST_UID != 1000 ]]; then
# patching internal $user_name to have the required host user id
usermod -u "$HOST_UID" $user_name
echo "Patched $user_name to have uid $HOST_UID"
fi

if [[ -d "/build" ]]; then
chown -R testuser:testuser /build
fi

echo "$1 running with user: $user_name"
Expand Down

0 comments on commit 32d2c1a

Please sign in to comment.