Skip to content

Commit

Permalink
Try to use docker instead
Browse files Browse the repository at this point in the history
  • Loading branch information
cptrodgers committed May 4, 2024
1 parent 95d24e3 commit 0fdd3b6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ikigai-graphql-server-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- run: cargo clippy --all-features -- -D warnings
- name: Build Clippy Container
run: |
docker build -f Workflow.Dockerfile -t ikigai-graphql-server:check .
docker run -it ikigai-graphql-server:check
12 changes: 12 additions & 0 deletions graphql_server/Workflow.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM rodgers/open-exam-rust-base:latest

WORKDIR /app

RUN rm -rf /app/src
RUN rm -rf /app/target/release/deps/graphql-server*
ADD src /app/src
ADD Cargo.toml /app/
ADD Cargo.lock /app/

RUN rustup component add clippy
CMD RUST_BACKTRACE=1 cargo clippy --all-features -- -D warnings

0 comments on commit 0fdd3b6

Please sign in to comment.