Skip to content

Commit

Permalink
Fix copy binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
marlonbaeten committed Nov 8, 2022
1 parent 56ea870 commit 6ee87f2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/build-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ jobs:
command: build
args: --release --target x86_64-unknown-linux-musl --manifest-path backend/Cargo.toml

- name: Copy binary
run: |
mkdir bin
cp target/x86_64-unknown-linux-musl/release/mailcrab-backend bin/amd64
working-directory: ./backend

- name: Cargo clean
run: cargo clean
working-directory: ./backend
Expand All @@ -66,10 +72,9 @@ jobs:
command: build
args: --release --target aarch64-unknown-linux-musl --manifest-path backend/Cargo.toml

- name: Copy binaries
- name: Copy binary
run: |
cp target/aarch64-unknown-linux-musl/release/mailcrab-backend target/arm64
cp target/x86_64-unknown-linux-musl/release/mailcrab-backend target/amd64
cp target/x86_64-unknown-linux-musl/release/mailcrab-backend bin/amd64
working-directory: ./backend

- name: Build frontend
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ FROM alpine:3.16
ARG TARGETARCH
WORKDIR /app
COPY ./frontend/dist /app/dist
COPY "./backend/target/$TARGETARCH" /app/mailcrab
COPY "./backend/bin/$TARGETARCH" /app/mailcrab
CMD ["/app/mailcrab"]
EXPOSE 1080 1025

0 comments on commit 6ee87f2

Please sign in to comment.