Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
lucemans committed Dec 4, 2024
1 parent bfb6826 commit 2151da4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ jobs:
working-directory: ./engine
run: cargo install sqlx-cli --no-default-features --features native-tls,postgres && sqlx migrate run && cargo sqlx prepare


- name: Stop postgres via docker-compose dev
working-directory: ./engine
run: docker compose -f ./compose.yaml down
Expand Down
3 changes: 2 additions & 1 deletion engine/.build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ FROM clux/muslrust:stable as builder
RUN groupadd -g 10001 -r dockergrp && useradd -r -g dockergrp -u 10001 dockeruser
ARG BINARY_NAME_DEFAULT
ENV BINARY_NAME=$BINARY_NAME_DEFAULT
ENV SQLX_OFFLINE=true

# Build the project with target x86_64-unknown-linux-musl

Expand All @@ -23,7 +24,7 @@ COPY src ./src
COPY migrations ./migrations
COPY .sqlx ./sqlx

RUN set -x && cargo build --target x86_64-unknown-linux-musl --release
RUN set -x && SQLX_OFFLINE=true cargo build --target x86_64-unknown-linux-musl --release
RUN mkdir -p /build-out
RUN set -x && cp target/x86_64-unknown-linux-musl/release/$BINARY_NAME /build-out/

Expand Down

0 comments on commit 2151da4

Please sign in to comment.