Skip to content

Commit

Permalink
github-ci: misc fixes
Browse files Browse the repository at this point in the history
- Fix git permissions after checkout
- Don't use terminal in Docker if running in GitHub CI
  • Loading branch information
jasonish committed Oct 23, 2024
1 parent a3d37f3 commit 75d14e7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:
container: rust:latest
steps:
- uses: actions/checkout@v4
# Needed to we can get the build revision, required by build.rs
- run: git config --global --add safe.directory /__w/evebox/evebox
- run: cargo test --all

build-dist:
Expand Down
3 changes: 2 additions & 1 deletion build-dist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ cross_run() {
fi
dockerfile="./docker/builder/Dockerfile.cross"
tag=${BUILDER_TAG:-"evebox/builder:cross"}
if test -t; then
env
if [ -z "${GITHUB_REPOSITORY}" && test -t ]; then
it="-it"
else
it=""
Expand Down

0 comments on commit 75d14e7

Please sign in to comment.