Skip to content

Commit

Permalink
build: try workaround workdir in container is not owned by current us…
Browse files Browse the repository at this point in the history
…er (#118)

Signed-off-by: tison <[email protected]>
  • Loading branch information
tisonkun authored Mar 24, 2024
1 parent d4cabe3 commit 803c53c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ jobs:
matrix:
os: [ ubuntu-latest, buildjet-4vcpu-ubuntu-2204-arm ]
runs-on: ${{matrix.os}}
name: Docker sanity check on ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Build and load
Expand Down Expand Up @@ -92,6 +93,7 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
name: Smoke test on ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
Expand Down
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ RUN apk fix && \
cargo build --release --bin hawkeye

FROM public.ecr.aws/docker/library/alpine:3.19.0
RUN apk fix && apk --no-cache --update add gcompat libgcc git && \
git config --global --add safe.directory /github/workspace
RUN apk fix && apk --no-cache --update add gcompat libgcc && mkdir -p /github/workspace
COPY --from=build /build/target/release/hawkeye /bin/
WORKDIR /github/workspace/
ENTRYPOINT ["/bin/hawkeye"]

0 comments on commit 803c53c

Please sign in to comment.