Skip to content

Commit

Permalink
Try this
Browse files Browse the repository at this point in the history
  • Loading branch information
theory committed Jan 19, 2024
1 parent 06651f0 commit 181c6ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ jobs:
- name: Build Image
run: docker build -t pgxn-tools-test .
- name: Test as root
run: "docker run --rm --volume \"$(pwd)/test:/repo\" pgxn-tools-test /repo/runtest.sh ${{ matrix.pg }}"
run: "docker run -w /repo --rm --volume \"$(pwd):/repo\" pgxn-tools-test /repo/test/runtest.sh ${{ matrix.pg }}"
- name: Test as non-root
run: "docker run --rm --volume \"$(pwd)/test:/repo\" -e AS_USER=worker pgxn-tools-test /repo/runtest.sh ${{ matrix.pg }}"
run: "docker run -w /repo --rm --volume \"$(pwd):/repo\" -e AS_USER=worker pgxn-tools-test /repo/test/runtest.sh ${{ matrix.pg }}"

publish:
# Publish for a tag starting with v.
Expand Down
2 changes: 1 addition & 1 deletion bin/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -e

# Ensure Git can do stuff in the working directory.
# https://github.com/pgxn/docker-pgxn-tools/issues/5
git config --system --add safe.directory "$PWD"
git config --global --add safe.directory "$PWD"

# Just continue if unprivileged user not requested.
[ -z "$AS_USER" ] && exec "$@"
Expand Down

0 comments on commit 181c6ef

Please sign in to comment.